prithivMLmods commited on
Commit
62eda38
·
verified ·
1 Parent(s): 7c11b0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -333,14 +333,14 @@ def process_document_stream(
333
  time.sleep(0.01)
334
  yield buffer
335
 
336
- # --- Gradio UI Definition ---
337
  def create_gradio_interface():
338
  """Builds and returns the Gradio web interface."""
339
  css = """
340
  .main-container { max-width: 1400px; margin: 0 auto; }
 
341
  """
342
  with gr.Blocks(theme=blue_theme, css=css) as demo:
343
- gr.Markdown("# **Multimodal VLM v1.0**")
344
  gr.Markdown("Explore the capabilities of various Vision Language Models for tasks like OCR, VQA, and Object Detection.")
345
 
346
  with gr.Tabs():
@@ -414,9 +414,6 @@ def create_gradio_interface():
414
  label="Click an example to populate inputs"
415
  )
416
 
417
- # --- Event Handlers ---
418
-
419
- # Document Tab
420
  process_btn.click(
421
  fn=process_document_stream,
422
  inputs=[model_choice, image_input_doc, prompt_input_doc, max_new_tokens, temperature, top_p, top_k, repetition_penalty],
 
333
  time.sleep(0.01)
334
  yield buffer
335
 
 
336
  def create_gradio_interface():
337
  """Builds and returns the Gradio web interface."""
338
  css = """
339
  .main-container { max-width: 1400px; margin: 0 auto; }
340
+ #main-title h1 {font-size: 2.2em !important;}
341
  """
342
  with gr.Blocks(theme=blue_theme, css=css) as demo:
343
+ gr.Markdown("# **Multimodal VLM v1.0**", elem_id="main-title")
344
  gr.Markdown("Explore the capabilities of various Vision Language Models for tasks like OCR, VQA, and Object Detection.")
345
 
346
  with gr.Tabs():
 
414
  label="Click an example to populate inputs"
415
  )
416
 
 
 
 
417
  process_btn.click(
418
  fn=process_document_stream,
419
  inputs=[model_choice, image_input_doc, prompt_input_doc, max_new_tokens, temperature, top_p, top_k, repetition_penalty],