Spaces:
Build error
Build error
Commit
·
9098529
1
Parent(s):
f6806ab
Update app.py
Browse files
app.py
CHANGED
@@ -195,21 +195,21 @@ examples=[['Gandalf','dragon.wav','Who are you sir?',{}]]
|
|
195 |
history = {"character": "None", "message_history" : [] }
|
196 |
|
197 |
interface_mic= gr.Interface(fn=greet,
|
198 |
-
inputs=[gr.
|
199 |
-
gr.
|
200 |
"text",
|
201 |
"state"],
|
202 |
-
outputs=["html","state",gr.
|
203 |
css=css, title=title, description=description,article=article )
|
204 |
interface_file= gr.Interface(fn=greet,
|
205 |
-
inputs=[gr.
|
206 |
-
gr.
|
207 |
"text",
|
208 |
"state"],
|
209 |
-
outputs=["html","state",gr.
|
210 |
css=css, title=title, description=description,article=article )
|
211 |
interface_text= gr.Interface(fn=greet_textonly,
|
212 |
-
inputs=[gr.
|
213 |
"text",
|
214 |
"state"],
|
215 |
outputs=["html","state"],
|
|
|
195 |
history = {"character": "None", "message_history" : [] }
|
196 |
|
197 |
interface_mic= gr.Interface(fn=greet,
|
198 |
+
inputs=[gr.components.Dropdown(personality_choices),
|
199 |
+
gr.components.Audio(source="microphone", type="filepath") ,
|
200 |
"text",
|
201 |
"state"],
|
202 |
+
outputs=["html","state",gr.components.Audio(type="file")],
|
203 |
css=css, title=title, description=description,article=article )
|
204 |
interface_file= gr.Interface(fn=greet,
|
205 |
+
inputs=[gr.components.Dropdown(personality_choices),
|
206 |
+
gr.components.Audio(type="filepath"),
|
207 |
"text",
|
208 |
"state"],
|
209 |
+
outputs=["html","state",gr.components.Audio(type="file")],
|
210 |
css=css, title=title, description=description,article=article )
|
211 |
interface_text= gr.Interface(fn=greet_textonly,
|
212 |
+
inputs=[gr.components.Dropdown(personality_choices),
|
213 |
"text",
|
214 |
"state"],
|
215 |
outputs=["html","state"],
|