Spaces:
Build error
Build error
Commit
·
387e8c6
1
Parent(s):
db96acc
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,13 +77,13 @@ def make_predictions(file, micro=None):
|
|
| 77 |
|
| 78 |
axs.set_varlabels(spoke_labels)
|
| 79 |
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
|
| 85 |
|
| 86 |
-
return convert_class_to_emotion(predictions), fig_radar #
|
| 87 |
|
| 88 |
|
| 89 |
|
|
@@ -97,6 +97,6 @@ iface = gr.Interface(
|
|
| 97 |
gr.Audio(source="microphone", type="filepath", streaming=False, label="Microphone")]
|
| 98 |
,
|
| 99 |
examples=[[os.path.join("examples", filename)] for filename in os.listdir("examples")],
|
| 100 |
-
outputs=[gr.Textbox(label="Text output"), gr.Plot()
|
| 101 |
)
|
| 102 |
iface.launch(debug=True)
|
|
|
|
| 77 |
|
| 78 |
axs.set_varlabels(spoke_labels)
|
| 79 |
|
| 80 |
+
fig = plt.figure()
|
| 81 |
+
plt.plot(data, alpha=0.8)
|
| 82 |
+
plt.xlabel("temps")
|
| 83 |
+
plt.ylabel("amplitude")
|
| 84 |
|
| 85 |
|
| 86 |
+
return convert_class_to_emotion(predictions), fig, fig_radar #
|
| 87 |
|
| 88 |
|
| 89 |
|
|
|
|
| 97 |
gr.Audio(source="microphone", type="filepath", streaming=False, label="Microphone")]
|
| 98 |
,
|
| 99 |
examples=[[os.path.join("examples", filename)] for filename in os.listdir("examples")],
|
| 100 |
+
outputs=[gr.Textbox(label="Text output"), gr.Plot(), gr.Plot()]
|
| 101 |
)
|
| 102 |
iface.launch(debug=True)
|