Update app.py
Browse files
app.py
CHANGED
|
@@ -41,12 +41,15 @@ def analyze_voice(audio_file):
|
|
| 41 |
# Create Gradio interface
|
| 42 |
interface = gr.Interface(
|
| 43 |
fn=analyze_voice,
|
| 44 |
-
inputs=gr.Audio(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
outputs=gr.JSON(label="Analysis Results"),
|
| 46 |
title="Digital Gut - Voice Emotion Analysis",
|
| 47 |
description="Performs emotion analysis and text conversion from voice input.",
|
| 48 |
-
theme=gr.themes.Soft()
|
| 49 |
-
analytics_enabled=True
|
| 50 |
)
|
| 51 |
|
| 52 |
# Launch app
|
|
|
|
| 41 |
# Create Gradio interface
|
| 42 |
interface = gr.Interface(
|
| 43 |
fn=analyze_voice,
|
| 44 |
+
inputs=gr.Audio(
|
| 45 |
+
label="Voice Input",
|
| 46 |
+
sources=["microphone", "upload"],
|
| 47 |
+
type="filepath"
|
| 48 |
+
),
|
| 49 |
outputs=gr.JSON(label="Analysis Results"),
|
| 50 |
title="Digital Gut - Voice Emotion Analysis",
|
| 51 |
description="Performs emotion analysis and text conversion from voice input.",
|
| 52 |
+
theme=gr.themes.Soft()
|
|
|
|
| 53 |
)
|
| 54 |
|
| 55 |
# Launch app
|