Spaces:
Runtime error
Runtime error
Commit
·
5546b26
1
Parent(s):
8f32897
update UI
Browse files
app.py
CHANGED
@@ -644,9 +644,11 @@ with gr.Blocks() as demo:
|
|
644 |
title="STLA BABY - YOUR FRIENDLY GUIDE",
|
645 |
description= "v0.3: Powered by MECH Core Team",
|
646 |
)
|
|
|
647 |
|
648 |
with gr.Column() as main2:
|
649 |
-
title = gr.Markdown("# <center> STLA BABY - YOUR FRIENDLY GUIDE
|
|
|
650 |
chatbot = gr.Chatbot()
|
651 |
with gr.Row():
|
652 |
inputtext = gr.Textbox(
|
@@ -665,6 +667,7 @@ with gr.Blocks() as demo:
|
|
665 |
choices=['Zero Short Agent','Zero Short React','OpenAI Multi'],
|
666 |
label="Select Agent",
|
667 |
scale= 1,
|
|
|
668 |
)
|
669 |
voice_input = gr.Audio(source="microphone", type="filepath", scale= 1)
|
670 |
voice_output = gr.Audio(
|
@@ -679,7 +682,8 @@ with gr.Blocks() as demo:
|
|
679 |
):
|
680 |
# logs = gr.Textbox()
|
681 |
logs = gr.Textbox()
|
682 |
-
upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
|
|
|
683 |
agentchoice.change(SetAgent, agentchoice, None)
|
684 |
demo.load(read_logs, None, logs, every=1)
|
685 |
|
|
|
644 |
title="STLA BABY - YOUR FRIENDLY GUIDE",
|
645 |
description= "v0.3: Powered by MECH Core Team",
|
646 |
)
|
647 |
+
main.visible = False
|
648 |
|
649 |
with gr.Column() as main2:
|
650 |
+
title = gr.Markdown("""# <center> STLA BABY - YOUR FRIENDLY GUIDE
|
651 |
+
<center> v0.4: Powered by MECH Core Team"""),
|
652 |
chatbot = gr.Chatbot()
|
653 |
with gr.Row():
|
654 |
inputtext = gr.Textbox(
|
|
|
667 |
choices=['Zero Short Agent','Zero Short React','OpenAI Multi'],
|
668 |
label="Select Agent",
|
669 |
scale= 1,
|
670 |
+
show_label = False,
|
671 |
)
|
672 |
voice_input = gr.Audio(source="microphone", type="filepath", scale= 1)
|
673 |
voice_output = gr.Audio(
|
|
|
682 |
):
|
683 |
# logs = gr.Textbox()
|
684 |
logs = gr.Textbox()
|
685 |
+
# upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
|
686 |
+
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|
687 |
agentchoice.change(SetAgent, agentchoice, None)
|
688 |
demo.load(read_logs, None, logs, every=1)
|
689 |
|