prithivMLmods commited on
Commit
1c0541e
·
verified ·
1 Parent(s): 4376aa7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -104,13 +104,13 @@ css = """
104
  """
105
 
106
  # Create the Gradio interface with Blocks
107
- with gr.Blocks(theme="bethecloud/storj_theme") as demo:
108
  gr.Markdown("# **[Florence-2 Models Image Captions](https://huggingface.co/collections/prithivMLmods/multimodal-implementations-67c9982ea04b39f0608badb0)**")
109
  gr.Markdown(description)
110
  with gr.Row():
111
  image_input = gr.Image(label="Upload Image", type="pil")
112
  model_choice = gr.Radio(["Base", "Large"], label="Model Choice", value="Base")
113
- output = gr.Textbox(label="Generated Caption", lines=4, show_copy_button=True)
114
  generate_btn = gr.Button("Generate Caption",
115
  elem_classes="submit-btn")
116
  generate_btn.click(fn=describe_image, inputs=[image_input, model_choice], outputs=output)
 
104
  """
105
 
106
  # Create the Gradio interface with Blocks
107
+ with gr.Blocks(theme="bethecloud/storj_theme", css=css) as demo:
108
  gr.Markdown("# **[Florence-2 Models Image Captions](https://huggingface.co/collections/prithivMLmods/multimodal-implementations-67c9982ea04b39f0608badb0)**")
109
  gr.Markdown(description)
110
  with gr.Row():
111
  image_input = gr.Image(label="Upload Image", type="pil")
112
  model_choice = gr.Radio(["Base", "Large"], label="Model Choice", value="Base")
113
+ output = gr.Textbox(label="Generated Caption", lines=4, show_copy_button=True)
114
  generate_btn = gr.Button("Generate Caption",
115
  elem_classes="submit-btn")
116
  generate_btn.click(fn=describe_image, inputs=[image_input, model_choice], outputs=output)