prithivMLmods commited on
Commit
2527bb0
·
verified ·
1 Parent(s): f8f5f34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"$$ \n{text}\n $$\n") # Fixed formatting, removed extra spaces
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(share=True, debug=True, show_error=True)
 
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