Spaces:
Runtime error
Runtime error
Commit
·
09b04d0
1
Parent(s):
a22c9ae
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
with gr.Blocks() as anything:
|
4 |
prompt = gr.Textbox(label="Prompt")
|
5 |
ngPrompt = gr.Textbox(label="Negative Prompt")
|
6 |
btn = gr.Button(value="Submit")
|
7 |
-
btn.click(
|
8 |
|
9 |
anything.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
api = gr.Interface.load("models/Linaqruf/anything-v3.0")
|
4 |
+
|
5 |
+
def model(prompt):
|
6 |
+
return api(prompt)
|
7 |
+
|
8 |
with gr.Blocks() as anything:
|
9 |
prompt = gr.Textbox(label="Prompt")
|
10 |
ngPrompt = gr.Textbox(label="Negative Prompt")
|
11 |
btn = gr.Button(value="Submit")
|
12 |
+
btn.click(api, inputs=[prompt, ngPrompt])
|
13 |
|
14 |
anything.launch()
|