Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,10 +30,19 @@ from pydub import AudioSegment
|
|
| 30 |
def get_logo():
|
| 31 |
return "https://via.placeholder.com/400x100/1e1e1e/1db954?text=Studio+Pulse+AI"
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
gr.Markdown("### Upload, edit, export — powered by AI!")
|
| 36 |
|
|
|
|
| 37 |
with gr.Tab("🎛 Preset Gallery"):
|
| 38 |
gr.Markdown("### Select a preset visually")
|
| 39 |
preset_gallery = gr.Gallery(value=[
|
|
@@ -47,12 +56,7 @@ def get_logo():
|
|
| 47 |
("https://via.placeholder.com/150x100/1e1e1e/1db954?text=Tube+Saturation", "Tube Saturation")
|
| 48 |
], label="Preset Cards", columns=4)
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
# === Studio Logo – Embedded via Base64 or URL ===
|
| 54 |
-
def get_logo():
|
| 55 |
-
return "https://via.placeholder.com/400x100/1e1e1e/1db954?text=Studio+Pulse+AI"
|
| 56 |
|
| 57 |
# Suppress warnings
|
| 58 |
warnings.filterwarnings("ignore")
|
|
|
|
| 30 |
def get_logo():
|
| 31 |
return "https://via.placeholder.com/400x100/1e1e1e/1db954?text=Studio+Pulse+AI"
|
| 32 |
|
| 33 |
+
# === Start Gradio App ===
|
| 34 |
+
with gr.Blocks(title="Studio Pulse AI", css="style.css") as demo:
|
| 35 |
+
# Header with logo and tagline
|
| 36 |
+
gr.HTML(f'''
|
| 37 |
+
<div class="studio-header">
|
| 38 |
+
<img src="{get_logo()}" width="400" />
|
| 39 |
+
<h3>Where Your Audio Meets Intelligence</h3>
|
| 40 |
+
</div>
|
| 41 |
+
''')
|
| 42 |
+
|
| 43 |
gr.Markdown("### Upload, edit, export — powered by AI!")
|
| 44 |
|
| 45 |
+
# Preset Gallery Tab
|
| 46 |
with gr.Tab("🎛 Preset Gallery"):
|
| 47 |
gr.Markdown("### Select a preset visually")
|
| 48 |
preset_gallery = gr.Gallery(value=[
|
|
|
|
| 56 |
("https://via.placeholder.com/150x100/1e1e1e/1db954?text=Tube+Saturation", "Tube Saturation")
|
| 57 |
], label="Preset Cards", columns=4)
|
| 58 |
|
| 59 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
# Suppress warnings
|
| 62 |
warnings.filterwarnings("ignore")
|