prithivMLmods commited on
Commit
a8446e4
·
verified ·
1 Parent(s): a30f73c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -213,7 +213,7 @@ example_image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
213
 
214
  with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
215
  gr.Markdown("# **DeepSeek OCR [exp]**", elem_id="main-title")
216
- gr.Markdown("[ This app is running with transformers v.4.57.1 and torch v.2.6.0. ]")
217
 
218
  with gr.Row():
219
  with gr.Column(scale=1):
@@ -224,9 +224,12 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
224
  submit_btn = gr.Button("Process Image", variant="primary")
225
 
226
  with gr.Column(scale=2):
227
- output_text = gr.Textbox(label="Output(OCR)", lines=15, show_copy_button=True)
228
  output_image = gr.Image(label="Layout Detection(If Any)", type="pil")
229
-
 
 
 
230
  def toggle_ref_text_visibility(task):
231
  return gr.Textbox(visible=True) if task == "Locate Object by Reference" else gr.Textbox(visible=False)
232
 
 
213
 
214
  with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
215
  gr.Markdown("# **DeepSeek OCR [exp]**", elem_id="main-title")
216
+
217
 
218
  with gr.Row():
219
  with gr.Column(scale=1):
 
224
  submit_btn = gr.Button("Process Image", variant="primary")
225
 
226
  with gr.Column(scale=2):
227
+ output_text = gr.Textbox(label="Output(OCR)", lines=11, show_copy_button=True)
228
  output_image = gr.Image(label="Layout Detection(If Any)", type="pil")
229
+
230
+ with gr.Accordion("Note🔥", open=False):
231
+ gr.Markdown("[ This app is running with transformers v.4.57.1 and torch v.2.6.0. ]")
232
+
233
  def toggle_ref_text_visibility(task):
234
  return gr.Textbox(visible=True) if task == "Locate Object by Reference" else gr.Textbox(visible=False)
235