Spaces:
Running
Running
modify app
Browse files
app.py
CHANGED
@@ -141,8 +141,10 @@ def perform_ito(input_audio, reference_audio, ito_reference_audio, num_steps, op
|
|
141 |
|
142 |
|
143 |
""" APP display """
|
|
|
|
|
144 |
with gr.Blocks() as demo:
|
145 |
-
gr.Markdown("# Mastering Style Transfer
|
146 |
|
147 |
with gr.Tab("Upload Audio"):
|
148 |
with gr.Row():
|
@@ -189,7 +191,7 @@ with gr.Blocks() as demo:
|
|
189 |
outputs=[output_audio_yt, param_output_yt, error_message_yt]
|
190 |
)
|
191 |
|
192 |
-
gr.Markdown("## Inference Time Optimization (ITO)")
|
193 |
|
194 |
with gr.Row():
|
195 |
ito_reference_audio = gr.Audio(label="ITO Reference Audio (optional)")
|
@@ -242,20 +244,8 @@ with gr.Blocks() as demo:
|
|
242 |
y_min = loss_df['loss'].min()
|
243 |
y_max = loss_df['loss'].max()
|
244 |
|
245 |
-
# Create a new plot configuration
|
246 |
-
plot_config = {
|
247 |
-
"x": "step",
|
248 |
-
"y": "loss",
|
249 |
-
"title": "ITO Loss Curve",
|
250 |
-
"x_title": "Step",
|
251 |
-
"y_title": "Loss",
|
252 |
-
"height": 300,
|
253 |
-
"width": 600,
|
254 |
-
"y_lim": [y_min, y_max],
|
255 |
-
}
|
256 |
-
|
257 |
# Return the plot configuration along with the data
|
258 |
-
return final_audio, final_params, final_log,
|
259 |
|
260 |
|
261 |
ito_button.click(
|
|
|
141 |
|
142 |
|
143 |
""" APP display """
|
144 |
+
gr.Markdown("# ITO-Master: Inference Time Optimization for Mastering Style Transfer")
|
145 |
+
|
146 |
with gr.Blocks() as demo:
|
147 |
+
gr.Markdown("# Step 1: Mastering Style Transfer")
|
148 |
|
149 |
with gr.Tab("Upload Audio"):
|
150 |
with gr.Row():
|
|
|
191 |
outputs=[output_audio_yt, param_output_yt, error_message_yt]
|
192 |
)
|
193 |
|
194 |
+
gr.Markdown("## Step 2: Inference Time Optimization (ITO)")
|
195 |
|
196 |
with gr.Row():
|
197 |
ito_reference_audio = gr.Audio(label="ITO Reference Audio (optional)")
|
|
|
244 |
y_min = loss_df['loss'].min()
|
245 |
y_max = loss_df['loss'].max()
|
246 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
# Return the plot configuration along with the data
|
248 |
+
return final_audio, final_params, final_log, loss_df
|
249 |
|
250 |
|
251 |
ito_button.click(
|