Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,9 +31,10 @@ models = [
|
|
31 |
custom_model = "models/stabilityai/stable-diffusion-2-1"
|
32 |
|
33 |
def selectModel(message):
|
|
|
34 |
message = message.lower()
|
35 |
for i in range(len(models)):
|
36 |
-
if message.find(models[i].prefix)!=-1:
|
37 |
c_model=models[i].path
|
38 |
logging.warning('model selected = '+c_model)
|
39 |
return c_model
|
@@ -51,7 +52,6 @@ sandbox = gr.Interface.load(
|
|
51 |
api_key=API_KEY
|
52 |
)
|
53 |
|
54 |
-
logging.warning('prompt = '+inputs)
|
55 |
logging.warning('model chosen = '+custom_model)
|
56 |
|
57 |
sandbox.queue(concurrency_count=20).launch()
|
|
|
31 |
custom_model = "models/stabilityai/stable-diffusion-2-1"
|
32 |
|
33 |
def selectModel(message):
|
34 |
+
logging.warning('message sent = '+message)
|
35 |
message = message.lower()
|
36 |
for i in range(len(models)):
|
37 |
+
if message.find(models[i].prefix.lower())!=-1:
|
38 |
c_model=models[i].path
|
39 |
logging.warning('model selected = '+c_model)
|
40 |
return c_model
|
|
|
52 |
api_key=API_KEY
|
53 |
)
|
54 |
|
|
|
55 |
logging.warning('model chosen = '+custom_model)
|
56 |
|
57 |
sandbox.queue(concurrency_count=20).launch()
|