azunre commited on
Commit
b94f08a
·
verified ·
1 Parent(s): d62c88e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,10 +20,10 @@ with gr.Blocks() as demo:
20
  """)
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
  history = ""
23
- with gr.Row(scale=4):
24
  output = gr.Text(label="Conversation:")
25
  history = history + "\n" + output
26
- with gr.Row(scale=1):
27
  prompt = gr.Text(label="Enter Text In Your Local Language:")
28
  btn = gr.Button("Chat")
29
  btn.click(generate, inputs=[prompt,language_selector], outputs=[history])
 
20
  """)
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
  history = ""
23
+ with gr.Row():
24
  output = gr.Text(label="Conversation:")
25
  history = history + "\n" + output
26
+ with gr.Row():
27
  prompt = gr.Text(label="Enter Text In Your Local Language:")
28
  btn = gr.Button("Chat")
29
  btn.click(generate, inputs=[prompt,language_selector], outputs=[history])