vithacocf commited on
Commit
510643b
·
verified ·
1 Parent(s): 586e078

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -584,6 +584,16 @@ def export_json(image_name, result_text):
584
  # export_btn.click(fn=export_json, inputs=[hidden_name, result_output], outputs=[json_file, json_text])
585
  # export_btn.click(fn=lambda: gr.update(visible=True), outputs=[json_file])
586
  # --- 10. Gradio UI ---
 
 
 
 
 
 
 
 
 
 
587
  with gr.Blocks(title="Camel-Doc-OCR") as demo:
588
  gr.Markdown("## 🧾 Camel-Doc-OCR (Qwen2.5-VL, 4-bit)")
589
  gr.Markdown(" ") # Tạo khoảng cách đầu trang để tránh lỗi scroll
 
584
  # export_btn.click(fn=export_json, inputs=[hidden_name, result_output], outputs=[json_file, json_text])
585
  # export_btn.click(fn=lambda: gr.update(visible=True), outputs=[json_file])
586
  # --- 10. Gradio UI ---
587
+ css = """
588
+ html, body {
589
+ height: 100% !important;
590
+ overflow-y: auto !important;
591
+ }
592
+ .gradio-container {
593
+ height: 100vh !important;
594
+ overflow-y: auto !important;
595
+ }
596
+ """
597
  with gr.Blocks(title="Camel-Doc-OCR") as demo:
598
  gr.Markdown("## 🧾 Camel-Doc-OCR (Qwen2.5-VL, 4-bit)")
599
  gr.Markdown(" ") # Tạo khoảng cách đầu trang để tránh lỗi scroll