Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -134,6 +134,7 @@ def extract_speech_ids(speech_tokens_str):
|
|
134 |
print(f"Unexpected token: {token_str}")
|
135 |
return speech_ids
|
136 |
|
|
|
137 |
@spaces.GPU(duration=15)
|
138 |
def infer_with_speaker(
|
139 |
display_name,
|
@@ -161,7 +162,7 @@ def infer_with_speaker(
|
|
161 |
progress,
|
162 |
)
|
163 |
|
164 |
-
|
165 |
@spaces.GPU(duration=15)
|
166 |
def gradio_infer(*args, **kwargs):
|
167 |
return infer(*args, **kwargs)
|
|
|
134 |
print(f"Unexpected token: {token_str}")
|
135 |
return speech_ids
|
136 |
|
137 |
+
@torch.inference_mode()
|
138 |
@spaces.GPU(duration=15)
|
139 |
def infer_with_speaker(
|
140 |
display_name,
|
|
|
162 |
progress,
|
163 |
)
|
164 |
|
165 |
+
@torch.inference_mode()
|
166 |
@spaces.GPU(duration=15)
|
167 |
def gradio_infer(*args, **kwargs):
|
168 |
return infer(*args, **kwargs)
|