rayl-aoit commited on
Commit
c5918f8
·
verified ·
1 Parent(s): c836a14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -23,7 +23,8 @@ def create_tabs_header(topic, descriptions):
23
  with gr.Row():
24
  with gr.Column(scale=4):
25
  gr.Markdown(f"## {topic}")
26
- gr.Markdown(f"## {description}") for description in descriptions
 
27
 
28
  with gr.Column(scale=1):
29
  test_pipeline_button = gr.Button(value="Process")
@@ -35,7 +36,9 @@ with playground:
35
  with gr.TabItem("Image"):
36
 
37
  topic = "Image Captioning"
38
- descriptions = ["Image-to-Text","model='Salesforce/blip-image-captioning-base'","[https://huggingface.co/Salesforce/blip-image-captioning-base](https://huggingface.co/Salesforce/blip-image-captioning-base)"]
 
 
39
  image_pipeline_button = create_tabs_header(topic, description)
40
 
41
  with gr.Row(visible=True) as use_pipeline:
 
23
  with gr.Row():
24
  with gr.Column(scale=4):
25
  gr.Markdown(f"## {topic}")
26
+ for description in descriptions:
27
+ gr.Markdown(f"## {description}")
28
 
29
  with gr.Column(scale=1):
30
  test_pipeline_button = gr.Button(value="Process")
 
36
  with gr.TabItem("Image"):
37
 
38
  topic = "Image Captioning"
39
+ descriptions = ["Image-to-Text",
40
+ "model='Salesforce/blip-image-captioning-base'",
41
+ "[https://huggingface.co/Salesforce/blip-image-captioning-base](https://huggingface.co/Salesforce/blip-image-captioning-base)"]
42
  image_pipeline_button = create_tabs_header(topic, description)
43
 
44
  with gr.Row(visible=True) as use_pipeline: