Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -299,7 +299,7 @@ def layoutjson2md(image: Image.Image, layout_data: List[Dict], text_key: str = '
|
|
299 |
markdown_lines.append(f"**Table:** {text}\n")
|
300 |
elif category == 'Formula':
|
301 |
if text.strip().startswith('$') or '\\' in text:
|
302 |
-
markdown_lines.append(f"$$
|
303 |
else:
|
304 |
markdown_lines.append(f"**Formula:** {text}\n")
|
305 |
elif category == 'Caption':
|
@@ -542,4 +542,4 @@ def create_gradio_interface():
|
|
542 |
|
543 |
if __name__ == "__main__":
|
544 |
demo = create_gradio_interface()
|
545 |
-
demo.queue(max_size=30).launch(
|
|
|
299 |
markdown_lines.append(f"**Table:** {text}\n")
|
300 |
elif category == 'Formula':
|
301 |
if text.strip().startswith('$') or '\\' in text:
|
302 |
+
markdown_lines.append(f"$$ \n{text}\n $$\n") # Fixed formatting, removed extra spaces
|
303 |
else:
|
304 |
markdown_lines.append(f"**Formula:** {text}\n")
|
305 |
elif category == 'Caption':
|
|
|
542 |
|
543 |
if __name__ == "__main__":
|
544 |
demo = create_gradio_interface()
|
545 |
+
demo.queue(max_size=30).launch(debug=True, show_error=True) # Removed share=True
|