Spaces:
Runtime error
Runtime error
TheStinger
commited on
Commit
•
95420ec
1
Parent(s):
0bcba2d
Update app.py
Browse files
app.py
CHANGED
@@ -77,6 +77,9 @@ def create_spectrogram_and_get_info(audio_file):
|
|
77 |
ax.axis('tight')
|
78 |
ax.axis('off')
|
79 |
|
|
|
|
|
|
|
80 |
# Create table and save as image
|
81 |
ax.text(0.5, 0.5, info_table, fontsize=14, ha='center', va='center', color='black')
|
82 |
ax.text(0.95, 0.05, "Made by Ilaria Audio Analyzer", fontsize=10, ha='right', va='bottom', color='black')
|
@@ -91,4 +94,4 @@ def create_spectrogram_and_get_info(audio_file):
|
|
91 |
return info_table_img, spectrogram_img
|
92 |
|
93 |
# Create the Gradio interface
|
94 |
-
main()
|
|
|
77 |
ax.axis('tight')
|
78 |
ax.axis('off')
|
79 |
|
80 |
+
# Set figure background color
|
81 |
+
fig.patch.set_facecolor('white')
|
82 |
+
|
83 |
# Create table and save as image
|
84 |
ax.text(0.5, 0.5, info_table, fontsize=14, ha='center', va='center', color='black')
|
85 |
ax.text(0.95, 0.05, "Made by Ilaria Audio Analyzer", fontsize=10, ha='right', va='bottom', color='black')
|
|
|
94 |
return info_table_img, spectrogram_img
|
95 |
|
96 |
# Create the Gradio interface
|
97 |
+
main()
|