Spaces:
Build error
Build error
Commit
·
586a110
1
Parent(s):
4be7052
Update app.py
Browse files
app.py
CHANGED
@@ -192,27 +192,24 @@ examples=[['Gandalf','dragon.wav','Who are you sir?',{}]]
|
|
192 |
|
193 |
history = {"character": "None", "message_history" : [] }
|
194 |
|
195 |
-
interface_mic= gr.Interface.load(
|
|
|
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 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
outputs=["html","state",gr.outputs.Audio(type="file")],
|
208 |
-
css=css, title=title, description=description,article=article )
|
209 |
-
interface_text= gr.Interface.load(fn=greet_textonly,
|
210 |
-
inputs=[gr.inputs.Dropdown(personality_choices),
|
211 |
"text",
|
212 |
"state"],
|
213 |
outputs=["html","state"],
|
214 |
-
css=css, title=
|
215 |
|
216 |
-
appinterface = gr.TabbedInterface([interface_mic,
|
217 |
if __name__ == "__main__":
|
218 |
appinterface.launch()
|
|
|
192 |
|
193 |
history = {"character": "None", "message_history" : [] }
|
194 |
|
195 |
+
interface_mic= gr.Interface.load("gorkemgoknar/movie_chat_gpt_yourtts",
|
196 |
+
|
197 |
inputs=[gr.inputs.Dropdown(personality_choices),
|
198 |
gr.inputs.Audio(source="microphone", type="filepath") ,
|
199 |
"text",
|
200 |
"state"],
|
201 |
outputs=["html","state",gr.outputs.Audio(type="file")],
|
202 |
css=css, title=title, description=description,article=article )
|
203 |
+
|
204 |
+
|
205 |
+
interface_text = gr.Interface.load("gorkemgoknar/moviechatbot",
|
206 |
+
src="spaces",
|
207 |
+
inputs=[gr.inputs.Dropdown(personality_choices),
|
|
|
|
|
|
|
|
|
208 |
"text",
|
209 |
"state"],
|
210 |
outputs=["html","state"],
|
211 |
+
css=css, title="Chat Text Only", description=description,article=article)
|
212 |
|
213 |
+
appinterface = gr.TabbedInterface([interface_mic, interface_text], ["Chat with Record", "Chat Text only"])
|
214 |
if __name__ == "__main__":
|
215 |
appinterface.launch()
|