Spaces:
Runtime error
Runtime error
Commit
·
ee07be8
1
Parent(s):
d7a28ac
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,12 @@ import gradio as gr
|
|
3 |
api = gr.Interface.load("models/Linaqruf/anything-v3.0")
|
4 |
|
5 |
def model(prompt, ngPrompt):
|
6 |
-
if
|
7 |
-
|
|
|
8 |
else:
|
9 |
-
|
|
|
10 |
|
11 |
with gr.Blocks() as anything:
|
12 |
prompt = gr.Textbox(label="Prompt")
|
|
|
3 |
api = gr.Interface.load("models/Linaqruf/anything-v3.0")
|
4 |
|
5 |
def model(prompt, ngPrompt):
|
6 |
+
if ngPrompt:
|
7 |
+
result = api([prompt, ngPrompt])
|
8 |
+
return result
|
9 |
else:
|
10 |
+
result = api([prompt])
|
11 |
+
return result
|
12 |
|
13 |
with gr.Blocks() as anything:
|
14 |
prompt = gr.Textbox(label="Prompt")
|