Spaces:
Runtime error
Runtime error
redpeacock78
commited on
Commit
·
06f5319
1
Parent(s):
95dc9eb
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,9 @@ api = gr.Interface.load("models/Linaqruf/anything-v3.0")
|
|
4 |
|
5 |
def model(prompt, ngPrompt):
|
6 |
data = [prompt, ngPrompt]
|
7 |
-
|
8 |
-
result = api(
|
|
|
9 |
return result
|
10 |
|
11 |
with gr.Blocks() as anything:
|
|
|
4 |
|
5 |
def model(prompt, ngPrompt):
|
6 |
data = [prompt, ngPrompt]
|
7 |
+
paramsList = [a for a in data if a != ""]
|
8 |
+
result = api(paramsList)
|
9 |
+
print(result)
|
10 |
return result
|
11 |
|
12 |
with gr.Blocks() as anything:
|