Spaces:
Runtime error
Runtime error
TheStinger
commited on
Commit
β’
d2811d8
1
Parent(s):
0166575
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,19 @@ import numpy as np
|
|
4 |
import os
|
5 |
import soundfile as sf
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
def create_spectrogram_and_get_info(audio_file):
|
8 |
# Clear figure in case it has data in it
|
9 |
plt.clf()
|
@@ -36,14 +49,7 @@ def create_spectrogram_and_get_info(audio_file):
|
|
36 |
|
37 |
# Create a table with the audio file info
|
38 |
info_table = f"""
|
39 |
-
|
40 |
-
|
41 |
-
Audio Analyzer Software by Ilaria, Help me on Ko-Fi
|
42 |
-
|
43 |
-
Special thanks to Alex Murkoff for helping me coding it!
|
44 |
-
|
45 |
-
Need help with AI? Join AI Hub!
|
46 |
-
|
47 |
| Information | Value |
|
48 |
| --- | --- |
|
49 |
| Duration | {int(minutes)} minutes - {int(seconds)} seconds - {int(milliseconds)} milliseconds |
|
|
|
4 |
import os
|
5 |
import soundfile as sf
|
6 |
|
7 |
+
def main():
|
8 |
+
# Gradio Interface
|
9 |
+
with gr.Blocks(title="Ilaria Audio Analyzer π", theme="dark") as demo:
|
10 |
+
|
11 |
+
gr.Markdown(
|
12 |
+
"""# <div align="center"> Ilaria Audio Analyzer π </div>
|
13 |
+
Audio Analyzer Software by Ilaria, Help me on [Ko-Fi](https://ko-fi.com/ilariaowo)
|
14 |
+
Special thanks to [Alex Murkoff](https://github.com/alexlnkp) for helping me coding it!
|
15 |
+
|
16 |
+
Need help with AI? [Join AI Hub!](https://discord.gg/aihub)
|
17 |
+
"""
|
18 |
+
)
|
19 |
+
|
20 |
def create_spectrogram_and_get_info(audio_file):
|
21 |
# Clear figure in case it has data in it
|
22 |
plt.clf()
|
|
|
49 |
|
50 |
# Create a table with the audio file info
|
51 |
info_table = f"""
|
52 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
| Information | Value |
|
54 |
| --- | --- |
|
55 |
| Duration | {int(minutes)} minutes - {int(seconds)} seconds - {int(milliseconds)} milliseconds |
|