redpeacock78 commited on
Commit
021d2eb
·
1 Parent(s): 40b7395

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -1,5 +1,9 @@
1
  import gradio as gr
2
 
3
- gr.Interface.load("models/Linaqruf/anything-v3.0",
4
- inputs=[gr.Textbox(label="Prompt"), gr.Textbox(label="Negative Prompt")]
5
- ).launch()
 
 
 
 
 
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("models/Linaqruf/anything-v3.0", input=[prompt, ngPrompt])
8
+
9
+ anything.launch()