Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
proc1 = gr.Interface.load("models/prompthero/funko-diffusion"
|
4 |
|
5 |
async def send_it1(inputs,proc1=proc1):
|
6 |
output1= proc1(inputs)
|
@@ -36,7 +36,7 @@ with gr.Blocks() as myface:
|
|
36 |
|
37 |
|
38 |
|
39 |
-
btn.click(send_it1, inputs=[text], outputs=[gallery],
|
40 |
|
41 |
if __name__ == "__main__":
|
42 |
myface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
proc1 = gr.Interface.load("models/prompthero/funko-diffusion")
|
4 |
|
5 |
async def send_it1(inputs,proc1=proc1):
|
6 |
output1= proc1(inputs)
|
|
|
36 |
|
37 |
|
38 |
|
39 |
+
btn.click(send_it1, inputs=[text], outputs=[gallery], api_name="text")
|
40 |
|
41 |
if __name__ == "__main__":
|
42 |
myface.launch()
|