Update app.py
Browse files
app.py
CHANGED
|
@@ -107,12 +107,10 @@ def predict(input, history=[]):
|
|
| 107 |
return formatted_message, history
|
| 108 |
|
| 109 |
demo = gr.Interface(
|
| 110 |
-
|
| 111 |
[
|
| 112 |
gr.Audio(source="upload", type="filepath", label="Your audio"),
|
| 113 |
-
gr.Textbox(),
|
| 114 |
],
|
| 115 |
-
fn=predict,
|
| 116 |
inputs=["text", "state"],
|
| 117 |
outputs=["chatbot", "state"],
|
| 118 |
title="AnyChat",
|
|
|
|
| 107 |
return formatted_message, history
|
| 108 |
|
| 109 |
demo = gr.Interface(
|
| 110 |
+
fn=predict,
|
| 111 |
[
|
| 112 |
gr.Audio(source="upload", type="filepath", label="Your audio"),
|
|
|
|
| 113 |
],
|
|
|
|
| 114 |
inputs=["text", "state"],
|
| 115 |
outputs=["chatbot", "state"],
|
| 116 |
title="AnyChat",
|