Update app.py
Browse files
app.py
CHANGED
|
@@ -298,7 +298,7 @@ def chat_with_ai(message, history, role, audio_file=None):
|
|
| 298 |
|
| 299 |
def create_chatbot():
|
| 300 |
with gr.Blocks(
|
| 301 |
-
theme=gr.themes.
|
| 302 |
css="""
|
| 303 |
@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');
|
| 304 |
|
|
@@ -370,7 +370,7 @@ def create_chatbot():
|
|
| 370 |
"""
|
| 371 |
) as demo:
|
| 372 |
with gr.Tab("Chatbot"):
|
| 373 |
-
chatbot = gr.
|
| 374 |
audio_output = gr.Audio(type="filepath", visible=False, autoplay=True)
|
| 375 |
state = gr.State([])
|
| 376 |
|
|
|
|
| 298 |
|
| 299 |
def create_chatbot():
|
| 300 |
with gr.Blocks(
|
| 301 |
+
theme=gr.themes.Default(),
|
| 302 |
css="""
|
| 303 |
@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');
|
| 304 |
|
|
|
|
| 370 |
"""
|
| 371 |
) as demo:
|
| 372 |
with gr.Tab("Chatbot"):
|
| 373 |
+
chatbot = gr.ChatInterface(type='messages')
|
| 374 |
audio_output = gr.Audio(type="filepath", visible=False, autoplay=True)
|
| 375 |
state = gr.State([])
|
| 376 |
|