Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,10 +27,10 @@ for i in range(len(models)):
|
|
27 |
model1.append(gradio.Interface.load(models[i].path))
|
28 |
|
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].
|
34 |
print(modelSelected)
|
35 |
model_idx=model3.index(modelSelected)
|
36 |
image_return = model1[model_idx](prompt)
|
|
|
27 |
model1.append(gradio.Interface.load(models[i].path))
|
28 |
|
29 |
def process1(prompt):
|
30 |
+
modelSelected=model3[0]
|
31 |
for i in range(len(models)):
|
32 |
if prompt.find(models[i].prefix)!=-1:
|
33 |
+
modelSelected=models[i].name
|
34 |
print(modelSelected)
|
35 |
model_idx=model3.index(modelSelected)
|
36 |
image_return = model1[model_idx](prompt)
|