Spaces:
Running
Running
modify app
Browse files- app.py +2 -0
- inference.py +1 -1
app.py
CHANGED
@@ -156,6 +156,8 @@ def run_ito(input_audio, reference_audio, ito_reference_audio, num_steps, optimi
|
|
156 |
return all_results, min_loss_step, loss_df
|
157 |
|
158 |
def update_ito_output(all_results, selected_step):
|
|
|
|
|
159 |
selected_result = all_results[selected_step]
|
160 |
return (args.sample_rate, selected_result['audio']), selected_result['params'], selected_result['log']
|
161 |
|
|
|
156 |
return all_results, min_loss_step, loss_df
|
157 |
|
158 |
def update_ito_output(all_results, selected_step):
|
159 |
+
print(all_results)
|
160 |
+
print(selected_step)
|
161 |
selected_result = all_results[selected_step]
|
162 |
return (args.sample_rate, selected_result['audio']), selected_result['params'], selected_result['log']
|
163 |
|
inference.py
CHANGED
@@ -167,7 +167,7 @@ class MasteringStyleTransfer:
|
|
167 |
total_loss.backward()
|
168 |
optimizer.step()
|
169 |
|
170 |
-
yield all_results[-1]
|
171 |
|
172 |
return all_results, min_loss_step
|
173 |
|
|
|
167 |
total_loss.backward()
|
168 |
optimizer.step()
|
169 |
|
170 |
+
# yield all_results[-1]
|
171 |
|
172 |
return all_results, min_loss_step
|
173 |
|