Update app.py
Browse files
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="
|
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"],
|