Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def gen_interface(model_name, max_times = 3):
|
|
31 |
gr_model_interface = None
|
32 |
while gr_model_interface is None and times < max_times:
|
33 |
try:
|
34 |
-
gr_model_interface = gr.load("models/{}".format(model_name),live=True)
|
35 |
except:
|
36 |
print("error {} times {}".format(model_name, times))
|
37 |
sleep(2)
|
|
|
31 |
gr_model_interface = None
|
32 |
while gr_model_interface is None and times < max_times:
|
33 |
try:
|
34 |
+
gr_model_interface = gr.load("models/{}".format(model_name),live=True,preprocess = False)
|
35 |
except:
|
36 |
print("error {} times {}".format(model_name, times))
|
37 |
sleep(2)
|