Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
9f9d2a6
1
Parent(s):
998d695
hotfix
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def run_inference(
|
|
37 |
Runs Nari inference using the globally loaded model and provided inputs.
|
38 |
Uses temporary files for text and audio prompt compatibility with inference.generate.
|
39 |
"""
|
40 |
-
global model, device # Access global model, config, device
|
41 |
|
42 |
if not text_input or text_input.isspace():
|
43 |
raise gr.Error("Text input cannot be empty.")
|
|
|
37 |
Runs Nari inference using the globally loaded model and provided inputs.
|
38 |
Uses temporary files for text and audio prompt compatibility with inference.generate.
|
39 |
"""
|
40 |
+
# global model, device # Access global model, config, device
|
41 |
|
42 |
if not text_input or text_input.isspace():
|
43 |
raise gr.Error("Text input cannot be empty.")
|