Update app.py
Browse files
app.py
CHANGED
|
@@ -27,9 +27,13 @@ with gr.Blocks() as iface:
|
|
| 27 |
gr.Markdown(title)
|
| 28 |
gr.Markdown(description)
|
| 29 |
with gr.Row():
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
| 33 |
submit_button.click(fn=generate_text, inputs=question, outputs=output)
|
| 34 |
|
|
|
|
| 35 |
iface.launch()
|
|
|
|
| 27 |
gr.Markdown(title)
|
| 28 |
gr.Markdown(description)
|
| 29 |
with gr.Row():
|
| 30 |
+
with gr.Column():
|
| 31 |
+
question = gr.Textbox(label="Speak to LiteLlama", lines=2, placeholder="What are the best Japanese gardens in Paris?")
|
| 32 |
+
submit_button = gr.Button("Submit")
|
| 33 |
+
with gr.Column():
|
| 34 |
+
output = gr.Textbox(label="🦙LiteLlama", lines=6)
|
| 35 |
+
|
| 36 |
submit_button.click(fn=generate_text, inputs=question, outputs=output)
|
| 37 |
|
| 38 |
+
# Launch the interface
|
| 39 |
iface.launch()
|