azunre commited on
Commit
0a57b16
·
verified ·
1 Parent(s): b77594f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ with gr.Blocks() as demo:
17
  Based on the Khaya AI & Lesan APIs and the BLIP model"
18
  """)
19
  language_selector = gr.Dropdown(["Twi","Dagbani","Ewe","Ga","Gurene","Fante","Hausa", "Kikuyu", "Kimeru", "Luo","Shona","Swahili","Tigrinya","Yoruba"],value="Twi",label="Choose Language! (default is Twi)", info="Language:")
20
- inputs = [gr.Image(type="pil"),language_selector]
21
  outputs = [gr.Textbox(label="English Caption"), gr.Textbox(label="African Language Caption"),
22
  gr.Image(label="Output image with predicted instances", type="filepath")]
23
  examples = [["https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"],
 
17
  Based on the Khaya AI & Lesan APIs and the BLIP model"
18
  """)
19
  language_selector = gr.Dropdown(["Twi","Dagbani","Ewe","Ga","Gurene","Fante","Hausa", "Kikuyu", "Kimeru", "Luo","Shona","Swahili","Tigrinya","Yoruba"],value="Twi",label="Choose Language! (default is Twi)", info="Language:")
20
+ inputs = [gr.Image(type="filepath"),language_selector]
21
  outputs = [gr.Textbox(label="English Caption"), gr.Textbox(label="African Language Caption"),
22
  gr.Image(label="Output image with predicted instances", type="filepath")]
23
  examples = [["https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"],