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