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 |
|
|
@@ -383,10 +383,10 @@ def create_chatbot():
|
|
| 383 |
)
|
| 384 |
with gr.Column(scale=1, min_width=5):
|
| 385 |
send_btn = gr.Button("👾")
|
| 386 |
-
with gr.Column(scale=0, min_width=
|
| 387 |
audio_input = gr.Audio(sources=["microphone"], type="filepath", visible=False)
|
| 388 |
audio_btn = gr.Button("🎤")
|
| 389 |
-
with gr.Column(scale=0, min_width=
|
| 390 |
file_input = gr.File(label="", file_types=[".txt", ".png", ".jpg", ".jpeg", ".pdf"], visible=False)
|
| 391 |
file_btn = gr.Button("📁")
|
| 392 |
|
|
|
|
| 298 |
|
| 299 |
def create_chatbot():
|
| 300 |
with gr.Blocks(
|
| 301 |
+
theme=gr.themes.Monochrome(),
|
| 302 |
css="""
|
| 303 |
@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');
|
| 304 |
|
|
|
|
| 383 |
)
|
| 384 |
with gr.Column(scale=1, min_width=5):
|
| 385 |
send_btn = gr.Button("👾")
|
| 386 |
+
with gr.Column(scale=0, min_width=150):
|
| 387 |
audio_input = gr.Audio(sources=["microphone"], type="filepath", visible=False)
|
| 388 |
audio_btn = gr.Button("🎤")
|
| 389 |
+
with gr.Column(scale=0, min_width=150):
|
| 390 |
file_input = gr.File(label="", file_types=[".txt", ".png", ".jpg", ".jpeg", ".pdf"], visible=False)
|
| 391 |
file_btn = gr.Button("📁")
|
| 392 |
|