Spaces:
Runtime error
Runtime error
Commit
·
5166d46
1
Parent(s):
39f3912
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import whisper
|
|
4 |
import gradio as gr
|
5 |
from transformers import pipeline
|
6 |
|
7 |
-
transcription_model = whisper.load_model("
|
8 |
|
9 |
def transcribe(audio):
|
10 |
|
@@ -92,7 +92,7 @@ with gr.Blocks(css=css) as demo:
|
|
92 |
|
93 |
with gr.Box():
|
94 |
|
95 |
-
chatbot = gr.Chatbot([], show_label=False, elem_id="chatbot").style(height="auto"
|
96 |
|
97 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
98 |
with gr.Column(scale=0.8):
|
@@ -103,7 +103,7 @@ with gr.Blocks(css=css) as demo:
|
|
103 |
with gr.Column(scale=0.2, min_width=0):
|
104 |
send = gr.Button("Send")
|
105 |
|
106 |
-
with gr.Row(elem_id="audio-container").style(
|
107 |
with gr.Column(scale=0.8):
|
108 |
recorder = gr.Audio(source="microphone", type="filepath", show_label=False).style(container=False)
|
109 |
with gr.Column(scale=0.2, min_width=0):
|
|
|
4 |
import gradio as gr
|
5 |
from transformers import pipeline
|
6 |
|
7 |
+
transcription_model = whisper.load_model("base")
|
8 |
|
9 |
def transcribe(audio):
|
10 |
|
|
|
92 |
|
93 |
with gr.Box():
|
94 |
|
95 |
+
chatbot = gr.Chatbot([], show_label=False, elem_id="chatbot").style(height="auto")
|
96 |
|
97 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
98 |
with gr.Column(scale=0.8):
|
|
|
103 |
with gr.Column(scale=0.2, min_width=0):
|
104 |
send = gr.Button("Send")
|
105 |
|
106 |
+
with gr.Row(elem_id="audio-container").style(equal_height=True):
|
107 |
with gr.Column(scale=0.8):
|
108 |
recorder = gr.Audio(source="microphone", type="filepath", show_label=False).style(container=False)
|
109 |
with gr.Column(scale=0.2, min_width=0):
|