Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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])
|
|
|
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])
|