osaaso commited on
Commit
4e02cab
·
1 Parent(s): 48acb6f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,12 +1,15 @@
1
  import gradio as gr
2
  with gr.Blocks() as demo:
3
  def inp1(txt1):
 
4
  return img1
5
  def inp2(img1):
 
6
  return out1
7
  prompt =gr.Textbox()
8
  img1=gr.Textbox()
9
  out1=gr.Textbox()
 
10
  btn1=gr.Button()
11
  btn1.click(inp1,prompt,img1).then(inp2,img1,out1)
12
- demo.launch(share=True)
 
1
  import gradio as gr
2
  with gr.Blocks() as demo:
3
  def inp1(txt1):
4
+ img1=txt1+"txt1-added"
5
  return img1
6
  def inp2(img1):
7
+ out1=img1+"img1-added"
8
  return out1
9
  prompt =gr.Textbox()
10
  img1=gr.Textbox()
11
  out1=gr.Textbox()
12
+
13
  btn1=gr.Button()
14
  btn1.click(inp1,prompt,img1).then(inp2,img1,out1)
15
+ demo.launch(share=False)