prithivMLmods commited on
Commit
87ed5b7
·
verified ·
1 Parent(s): 1a498ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -6
app.py CHANGED
@@ -232,11 +232,16 @@ css = """
232
  .submit-btn:hover {
233
  background-color: #3498db !important;
234
  }
 
 
 
 
 
235
  """
236
 
237
  # Create the Gradio Interface
238
  with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
239
- gr.Markdown("# **Multimodal OCR**")
240
  with gr.Row():
241
  with gr.Column():
242
  with gr.Tabs():
@@ -263,11 +268,12 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
263
  top_k = gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50)
264
  repetition_penalty = gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.2)
265
  with gr.Column():
266
- gr.Markdown("## Result.Md")
267
- output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=2)
268
- #format[ft.md]
269
- with gr.Accordion("Formatted Result (Result.md)", open=False):
270
- markdown_output = gr.Markdown(label="Formatted Result (Result.Md)")
 
271
  model_choice = gr.Radio(
272
  choices=["Nanonets-OCR-s", "Qwen2-VL-OCR-2B-Instruct", "RolmOCR", "Aya-Vision"],
273
  label="Select Model",
 
232
  .submit-btn:hover {
233
  background-color: #3498db !important;
234
  }
235
+ .canvas-output {
236
+ border: 2px solid #4682B4;
237
+ border-radius: 10px;
238
+ padding: 20px;
239
+ }
240
  """
241
 
242
  # Create the Gradio Interface
243
  with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
244
+ gr.Markdown("# **[Multimodal OCR](https://huggingface.co/collections/prithivMLmods/multimodal-implementations-67c9982ea04b39f0608badb0)**")
245
  with gr.Row():
246
  with gr.Column():
247
  with gr.Tabs():
 
268
  top_k = gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50)
269
  repetition_penalty = gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.2)
270
  with gr.Column():
271
+ with gr.Column(elem_classes="canvas-output"):
272
+ gr.Markdown("## Result.Md")
273
+ output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=2)
274
+ #format[ft.md]
275
+ with gr.Accordion("Formatted Result (Result.md)", open=False):
276
+ markdown_output = gr.Markdown(label="Formatted Result (Result.Md)")
277
  model_choice = gr.Radio(
278
  choices=["Nanonets-OCR-s", "Qwen2-VL-OCR-2B-Instruct", "RolmOCR", "Aya-Vision"],
279
  label="Select Model",