Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -131,13 +131,6 @@ transcribe_interface = gr.Interface(
|
|
131 |
allow_flagging="never",
|
132 |
)
|
133 |
|
134 |
-
def update_chatbot_main_input(updated_text):
|
135 |
-
return {"text": updated_text, "files":[]}
|
136 |
-
|
137 |
-
task_output.change(fn=update_chatbot_main_input,
|
138 |
-
inputs=task_output,
|
139 |
-
outputs=chatbot_main_input
|
140 |
-
)
|
141 |
|
142 |
"""
|
143 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
@@ -177,6 +170,14 @@ with gr.Blocks() as demo:
|
|
177 |
outputs=task_output
|
178 |
)
|
179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
|
181 |
if __name__ == "__main__":
|
182 |
demo.queue().launch() #demo.launch()
|
|
|
131 |
allow_flagging="never",
|
132 |
)
|
133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
|
135 |
"""
|
136 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
|
|
170 |
outputs=task_output
|
171 |
)
|
172 |
|
173 |
+
def update_chatbot_main_input(updated_text):
|
174 |
+
return {"text": updated_text, "files":[]}
|
175 |
+
|
176 |
+
task_output.change(fn=update_chatbot_main_input,
|
177 |
+
inputs=task_output,
|
178 |
+
outputs=chatbot_main_input
|
179 |
+
)
|
180 |
+
|
181 |
|
182 |
if __name__ == "__main__":
|
183 |
demo.queue().launch() #demo.launch()
|