Spaces:
Runtime error
Runtime error
vericudebuget
commited on
Commit
•
fe66a68
1
Parent(s):
966c09f
Update app.py
Browse files
app.py
CHANGED
@@ -47,11 +47,17 @@ additional_inputs = [
|
|
47 |
]
|
48 |
|
49 |
with gr.Blocks(theme=gr.themes.Soft()):
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
fn=generate,
|
52 |
-
chatbot=gr.Chatbot(show_label=True, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
53 |
-
additional_inputs=additional_inputs,
|
54 |
title="ConvoLite",
|
55 |
concurrency_limit=20,
|
|
|
56 |
)
|
57 |
app.launch(show_api=False)
|
|
|
47 |
]
|
48 |
|
49 |
with gr.Blocks(theme=gr.themes.Soft()):
|
50 |
+
chatbot = gr.Chatbot(show_label=True, show_share_button=False, show_copy_button=True, likeable=True, layout="panel")
|
51 |
+
with gr.Row():
|
52 |
+
gr.Chatbot(chatbot)
|
53 |
+
with gr.Column():
|
54 |
+
for input_component in additional_inputs:
|
55 |
+
input_component.render()
|
56 |
+
gr.Button("Submit").click(generate, inputs=[chatbot.text_input, chatbot.value, additional_inputs[0]], outputs=[chatbot])
|
57 |
+
app = gr.Interface(
|
58 |
fn=generate,
|
|
|
|
|
59 |
title="ConvoLite",
|
60 |
concurrency_limit=20,
|
61 |
+
theme=gr.themes.Soft(),
|
62 |
)
|
63 |
app.launch(show_api=False)
|