Spaces:
Runtime error
Runtime error
Commit ·
3954f62
1
Parent(s): 9164bc7
update UI
Browse files
app.py
CHANGED
|
@@ -544,18 +544,20 @@ def read_logs():
|
|
| 544 |
|
| 545 |
with gr.Blocks() as demo:
|
| 546 |
# gr.Markdown("Start typing below and then click **SUBMIT** to see the output.")
|
| 547 |
-
main = gr.ChatInterface(
|
| 548 |
-
chathmi2,
|
| 549 |
-
title="STLA BABY - YOUR FRIENDLY GUIDE",
|
| 550 |
-
description= "v0.3: Powered by MECH Core Team",
|
| 551 |
-
)
|
| 552 |
with gr.Row():
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 556 |
with gr.Accordion("LOGS"):
|
| 557 |
# logs = gr.Textbox()
|
| 558 |
-
logs = gr.
|
| 559 |
upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
|
| 560 |
demo.load(read_logs, None, logs, every=0.5)
|
| 561 |
|
|
|
|
| 544 |
|
| 545 |
with gr.Blocks() as demo:
|
| 546 |
# gr.Markdown("Start typing below and then click **SUBMIT** to see the output.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 547 |
with gr.Row():
|
| 548 |
+
main = gr.ChatInterface(
|
| 549 |
+
chathmi2,
|
| 550 |
+
title="STLA BABY - YOUR FRIENDLY GUIDE",
|
| 551 |
+
description= "v0.3: Powered by MECH Core Team",
|
| 552 |
+
scale=2,
|
| 553 |
+
)
|
| 554 |
+
with gr.Column(scale=1):
|
| 555 |
+
upload_button = gr.UploadButton("Upload To DB", file_count="multiple", scale= 1)
|
| 556 |
+
upload_file_button = gr.UploadButton("Upload File", file_count="single", scale= 1)
|
| 557 |
+
voice_input = gr.Audio(source="microphone", type="filepath", scale= 1)
|
| 558 |
with gr.Accordion("LOGS"):
|
| 559 |
# logs = gr.Textbox()
|
| 560 |
+
logs = gr.Textbox()
|
| 561 |
upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
|
| 562 |
demo.load(read_logs, None, logs, every=0.5)
|
| 563 |
|