Karumoon commited on
Commit
0f0dd14
1 Parent(s): 447e2ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -81,12 +81,6 @@ def randStr():
81
  def bbb22(text):
82
 
83
  return text[::-1]
84
- def iimg(text):
85
- print("\n\nvvv"+text+randStr+"\n\n")
86
- #img1.update(proc1("girl"))
87
- #german.update("soijfoijf")
88
- img0=proc1("girl "+randStr)
89
- return img0#pipe(text)[0]["translation_text"]
90
 
91
 
92
  with gr.Blocks() as demo:
@@ -102,7 +96,16 @@ with gr.Blocks() as demo:
102
  img3=gr.Image()
103
  with gr.Row():
104
  btn2 = gr.Button(value="btn2")
105
-
 
 
 
 
 
 
 
 
 
106
  btn2.click(bbb22,inputs=english,outputs=german)
107
  btn01.click(iimg, inputs=english, outputs=img1)
108
  examples = gr.Examples(examples=["I went to the supermarket yesterday.", "Helen is a good swimmer."],
 
81
  def bbb22(text):
82
 
83
  return text[::-1]
 
 
 
 
 
 
84
 
85
 
86
  with gr.Blocks() as demo:
 
96
  img3=gr.Image()
97
  with gr.Row():
98
  btn2 = gr.Button(value="btn2")
99
+
100
+ def iimg(text):
101
+ print("\n\nvvv"+text+randStr+"\n\n")
102
+ #img1.update(proc1("girl"))
103
+ #german.update("soijfoijf")
104
+ img01=proc1("girl "+randStr)
105
+ img02=proc2("girl "+randStr)
106
+ img03=proc3("girl "+randStr)
107
+ return {img1:img1.update(),img2:img2.update(),img3:img3.update()}#pipe(text)[0]["translation_text"]
108
+
109
  btn2.click(bbb22,inputs=english,outputs=german)
110
  btn01.click(iimg, inputs=english, outputs=img1)
111
  examples = gr.Examples(examples=["I went to the supermarket yesterday.", "Helen is a good swimmer."],