Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,6 @@ import torch
|
|
6 |
from typing import Tuple, List, Dict
|
7 |
from pydub import AudioSegment
|
8 |
from rich.console import Console
|
9 |
-
from rich.panel import Panel
|
10 |
from rich.progress import Progress, SpinnerColumn, TextColumn, BarColumn, TimeRemainingColumn
|
11 |
from rich.text import Text
|
12 |
import time
|
@@ -186,14 +185,7 @@ def inference(audio_file: str, model_name: str, vocals: bool, drums: bool, bass:
|
|
186 |
output_file = mp3_output_file
|
187 |
|
188 |
yield from stream_log("Process completed successfully!", "color: #4CAF50; font-weight: bold;")
|
189 |
-
|
190 |
-
Text("Separation and mixing completed successfully!", style="bold green"),
|
191 |
-
title="Demucs Result",
|
192 |
-
border_style="green",
|
193 |
-
width=min(terminal_width - 2, 98) # Adjust panel width
|
194 |
-
)
|
195 |
-
console.print(final_message)
|
196 |
-
yield output_file, list(stems.values()), gr.HTML(console.export_html())
|
197 |
|
198 |
# Define the Gradio interface
|
199 |
with gr.Blocks() as iface:
|
|
|
6 |
from typing import Tuple, List, Dict
|
7 |
from pydub import AudioSegment
|
8 |
from rich.console import Console
|
|
|
9 |
from rich.progress import Progress, SpinnerColumn, TextColumn, BarColumn, TimeRemainingColumn
|
10 |
from rich.text import Text
|
11 |
import time
|
|
|
185 |
output_file = mp3_output_file
|
186 |
|
187 |
yield from stream_log("Process completed successfully!", "color: #4CAF50; font-weight: bold;")
|
188 |
+
yield output_file, list(stems.values()), gr.HTML("<pre style='color: green; font-weight: bold;'>Separation and mixing completed successfully!</pre>")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
|
190 |
# Define the Gradio interface
|
191 |
with gr.Blocks() as iface:
|