Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -716,10 +716,11 @@ def infer(image_path, audio_path, text, num_steps, session_id = None, progress=g
|
|
| 716 |
return video_paths[0]
|
| 717 |
|
| 718 |
def apply_image(request):
|
|
|
|
| 719 |
return request, None
|
| 720 |
|
| 721 |
def apply_audio(request):
|
| 722 |
-
|
| 723 |
return request
|
| 724 |
|
| 725 |
def cleanup(request: gr.Request):
|
|
@@ -760,6 +761,7 @@ def preprocess_audio_first_5s_librosa(audio_path, limit_on, session_id=None):
|
|
| 760 |
"""
|
| 761 |
|
| 762 |
if not limit_on:
|
|
|
|
| 763 |
return audio_path
|
| 764 |
if not audio_path:
|
| 765 |
return None
|
|
|
|
| 716 |
return video_paths[0]
|
| 717 |
|
| 718 |
def apply_image(request):
|
| 719 |
+
print('image applied')
|
| 720 |
return request, None
|
| 721 |
|
| 722 |
def apply_audio(request):
|
| 723 |
+
print('audio applied')
|
| 724 |
return request
|
| 725 |
|
| 726 |
def cleanup(request: gr.Request):
|
|
|
|
| 761 |
"""
|
| 762 |
|
| 763 |
if not limit_on:
|
| 764 |
+
print(f'the limit has been ignored for {session_id}')
|
| 765 |
return audio_path
|
| 766 |
if not audio_path:
|
| 767 |
return None
|