Update app.py
Browse files
app.py
CHANGED
|
@@ -98,21 +98,13 @@ def generate_image(api_key, text):
|
|
| 98 |
|
| 99 |
# Create the Gradio interface
|
| 100 |
iface = gr.Interface(
|
| 101 |
-
title = 'Emotional Machines Test',
|
| 102 |
fn=get_predictions,
|
| 103 |
-
inputs=[
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
outputs=[
|
| 108 |
-
gr.outputs.Textbox(label="Emotion Prediction"),
|
| 109 |
-
gr.outputs.Image(label="Generated Image"),
|
| 110 |
-
gr.outputs.Textbox(label="Speech Recognition")
|
| 111 |
-
],
|
| 112 |
-
description="Load or Record an audio file to perform emotion analysis and speech recognition"
|
| 113 |
)
|
| 114 |
|
| 115 |
# Launch the interface
|
| 116 |
iface.launch()
|
| 117 |
|
| 118 |
-
|
|
|
|
| 98 |
|
| 99 |
# Create the Gradio interface
|
| 100 |
iface = gr.Interface(
|
|
|
|
| 101 |
fn=get_predictions,
|
| 102 |
+
inputs=[gr.inputs.Audio(source="file", label="Input Audio for Emotion Analysis", type="file")],
|
| 103 |
+
outputs=[gr.outputs.Textbox(label="Emotion Prediction"), gr.outputs.Image(label="Generated Image")],
|
| 104 |
+
title="Emotional Machines Test",
|
| 105 |
+
description="Load or Record an audio file to perform emotion analysis"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
)
|
| 107 |
|
| 108 |
# Launch the interface
|
| 109 |
iface.launch()
|
| 110 |
|
|
|