Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -152,6 +152,10 @@ def transcribe_and_respond(audio):
|
|
152 |
|
153 |
return audio_path, response_text
|
154 |
|
|
|
|
|
|
|
|
|
155 |
|
156 |
# Define the Gradio interface with only audio input and output
|
157 |
with gr.Blocks(theme="rawrsor1/Everforest") as demo:
|
|
|
152 |
|
153 |
return audio_path, response_text
|
154 |
|
155 |
+
# Function to clear the transcription state
|
156 |
+
def clear_transcription_state():
|
157 |
+
return None, None
|
158 |
+
|
159 |
|
160 |
# Define the Gradio interface with only audio input and output
|
161 |
with gr.Blocks(theme="rawrsor1/Everforest") as demo:
|