Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -109,25 +109,16 @@ def bot(history):
|
|
109 |
|
110 |
return history
|
111 |
|
112 |
-
def load():
|
113 |
-
return [
|
114 |
-
("Here's an audio", gr.Audio("01.wav"))
|
115 |
-
]
|
116 |
-
|
117 |
def create_interface():
|
118 |
with gr.Blocks() as demo:
|
119 |
-
|
120 |
-
chatbot1 = gr.Chatbot()
|
121 |
-
button = gr.Button("Load audio and video")
|
122 |
-
button.click(load, None, chatbot1)
|
123 |
|
124 |
# Chat interface using the custom chatbot instance
|
125 |
chatbot = gr.ChatInterface(
|
126 |
title="Exodia AI Assistant",
|
127 |
-
fill_height=True,
|
128 |
fn=respond,
|
129 |
submit_btn="Start Chatting"
|
130 |
)
|
|
|
131 |
user_start = chatbot.textbox.submit(
|
132 |
fn=update_response_display,
|
133 |
inputs=[],
|
|
|
109 |
|
110 |
return history
|
111 |
|
|
|
|
|
|
|
|
|
|
|
112 |
def create_interface():
|
113 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
114 |
|
115 |
# Chat interface using the custom chatbot instance
|
116 |
chatbot = gr.ChatInterface(
|
117 |
title="Exodia AI Assistant",
|
|
|
118 |
fn=respond,
|
119 |
submit_btn="Start Chatting"
|
120 |
)
|
121 |
+
|
122 |
user_start = chatbot.textbox.submit(
|
123 |
fn=update_response_display,
|
124 |
inputs=[],
|