azunre commited on
Commit
7b3fc24
·
verified ·
1 Parent(s): b2717d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,11 +14,11 @@ with gr.Blocks() as demo:
14
  title = gr.Markdown(
15
  """
16
  # African Language Image Captioning
17
- Based on the Khaya AI Translation API, Lesan Translation API, Google Translate API and the BLIP model. Lesan is used for Amharic and Tigrinya, Google is used for Hausa and Swahili, and Khaya is used for the remainder."
18
  """)
19
  with gr.Row():
20
  with gr.Column(scale=1):
21
- language_selector = gr.Dropdown(["Amharic","Twi","Dagbani","Ewe","Ga","Gurene","Fante","Hausa", "Kikuyu", "Kimeru", "Luo","Shona","Swahili","Tigrinya","Yoruba"],value="Twi",label="Choose Language! (default is Twi)", info="Language:")
22
  inputs = [gr.Image(type="filepath"),language_selector]
23
  examples = [["https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"],
24
  ["https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/rotated_image.jpeg"]]
 
14
  title = gr.Markdown(
15
  """
16
  # African Language Image Captioning
17
+ Based on the Khaya AI Translation API, Lesan Translation API, Google Translate API and the BLIP model. Lesan is used for Amharic and Tigrinya, Google is used for Hausa, Swahili and Shona, and Khaya is used for the remainder."
18
  """)
19
  with gr.Row():
20
  with gr.Column(scale=1):
21
+ language_selector = gr.Dropdown(["Twi","Amharic","Dagbani","Ewe","Ga","Gurene","Fante","Hausa", "Kikuyu", "Kimeru", "Luo","Shona","Swahili","Tigrinya","Yoruba"],value="Twi",label="Choose Language! (default is Twi)", info="Language:")
22
  inputs = [gr.Image(type="filepath"),language_selector]
23
  examples = [["https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"],
24
  ["https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/rotated_image.jpeg"]]