Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ for i in range(len(models)):
|
|
29 |
def process1(prompt):
|
30 |
modelSelected=''
|
31 |
for i in range(len(models)):
|
32 |
-
if
|
33 |
modelSelected=models[i].path
|
34 |
gradio.Interface.load(modelSelected)
|
35 |
if (modelSelected==''):
|
|
|
29 |
def process1(prompt):
|
30 |
modelSelected=''
|
31 |
for i in range(len(models)):
|
32 |
+
if prompt.find(models[i].prefix)!=-1:
|
33 |
modelSelected=models[i].path
|
34 |
gradio.Interface.load(modelSelected)
|
35 |
if (modelSelected==''):
|