Spaces:
Runtime error
Runtime error
Commit
·
1bc0c07
1
Parent(s):
42e0044
input new UI
Browse files
app.py
CHANGED
@@ -537,7 +537,7 @@ def chathmi2(message, history):
|
|
537 |
dis_audio = []
|
538 |
dis_audio.append(file_name)
|
539 |
# yield dis_audio
|
540 |
-
yield
|
541 |
except:
|
542 |
pass
|
543 |
if len(Audio_output) > 0:
|
@@ -636,6 +636,14 @@ with gr.Blocks() as demo:
|
|
636 |
title="STLA BABY - YOUR FRIENDLY GUIDE",
|
637 |
description= "v0.3: Powered by MECH Core Team",
|
638 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
639 |
with gr.Row():
|
640 |
upload_button = gr.UploadButton("Upload To DB", file_count="multiple", scale= 0)
|
641 |
upload_file_button = gr.UploadButton("Upload File", file_count="single", scale= 0)
|
|
|
537 |
dis_audio = []
|
538 |
dis_audio.append(file_name)
|
539 |
# yield dis_audio
|
540 |
+
yield dis_audio
|
541 |
except:
|
542 |
pass
|
543 |
if len(Audio_output) > 0:
|
|
|
636 |
title="STLA BABY - YOUR FRIENDLY GUIDE",
|
637 |
description= "v0.3: Powered by MECH Core Team",
|
638 |
)
|
639 |
+
|
640 |
+
with gr.Blocks() as main2:
|
641 |
+
title = gr.Markdown("STLA BABY - YOUR FRIENDLY GUIDE"),
|
642 |
+
chatbot = gr.Chatbot()
|
643 |
+
with gr.Column():
|
644 |
+
inputtext = gr.Textbox(scale= 2)
|
645 |
+
submit_button = gr.Button("Submit")
|
646 |
+
|
647 |
with gr.Row():
|
648 |
upload_button = gr.UploadButton("Upload To DB", file_count="multiple", scale= 0)
|
649 |
upload_file_button = gr.UploadButton("Upload File", file_count="single", scale= 0)
|