Spaces:
Runtime error
Runtime error
Update app.py
Browse filescorrected malformed transcribe_and_analyze outputs
app.py
CHANGED
|
@@ -22,14 +22,8 @@ def run_gradio():
|
|
| 22 |
|
| 23 |
word_count = len(transcript.split())
|
| 24 |
char_count = len(transcript.replace(" ", ""))
|
| 25 |
-
|
| 26 |
-
word_describe = {
|
| 27 |
-
"Transcript": transcript,
|
| 28 |
-
"Word Count": word_count,
|
| 29 |
-
"Character Count": char_count
|
| 30 |
-
}
|
| 31 |
|
| 32 |
-
return
|
| 33 |
|
| 34 |
# Gradio UI
|
| 35 |
with gr.Blocks(title="Whisper Agentic Transcriber") as demo:
|
|
@@ -40,6 +34,6 @@ def run_gradio():
|
|
| 40 |
word_count = gr.Number(label="π Word Count")
|
| 41 |
char_count = gr.Number(label="π‘ Character Count")
|
| 42 |
|
| 43 |
-
btn.click(fn=transcribe_and_analyze, inputs=audio, outputs=[
|
| 44 |
|
| 45 |
demo.launch(server_name="0.0.0.0", server_port=7860, share=True)
|
|
|
|
| 22 |
|
| 23 |
word_count = len(transcript.split())
|
| 24 |
char_count = len(transcript.replace(" ", ""))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
+
return transcript, word_count, char_count
|
| 27 |
|
| 28 |
# Gradio UI
|
| 29 |
with gr.Blocks(title="Whisper Agentic Transcriber") as demo:
|
|
|
|
| 34 |
word_count = gr.Number(label="π Word Count")
|
| 35 |
char_count = gr.Number(label="π‘ Character Count")
|
| 36 |
|
| 37 |
+
btn.click(fn=transcribe_and_analyze, inputs=audio, outputs=[transcript, word_count, char_count])
|
| 38 |
|
| 39 |
demo.launch(server_name="0.0.0.0", server_port=7860, share=True)
|