Update app.py
Browse files
app.py
CHANGED
|
@@ -104,22 +104,24 @@ with gr.Blocks() as demo:
|
|
| 104 |
#img1.update(proc1("girl"))
|
| 105 |
#german.update("soijfoijf")
|
| 106 |
|
| 107 |
-
btn2.click(proc1,inputs="girl "+randStr(),outputs=img1)
|
| 108 |
-
|
| 109 |
print("\n\nvvv2 "+text+randStr()+"\n\n")
|
| 110 |
|
| 111 |
-
|
| 112 |
-
btn3.click(proc2,inputs="girl "+randStr(),outputs=img2)
|
| 113 |
print("\n\nvvv3 "+text+randStr()+"\n\n")
|
| 114 |
|
| 115 |
-
|
| 116 |
-
btn4.click(proc3,inputs="girl "+randStr(),outputs=img3)
|
| 117 |
print("\n\nvvv4 "+text+randStr()+"\n\n")
|
| 118 |
return {img1:img1.update(img01),img2:img2.update(img02),img3:img3.update(img03),german:"aaaaaddddd"}#pipe(text)[0]["translation_text"]
|
| 119 |
|
| 120 |
-
btn2.click(bbb22,inputs=english,outputs=german)
|
| 121 |
btn01.click(iimg, inputs=english, outputs=[img1,img2,img3,german])
|
| 122 |
-
|
|
|
|
|
|
|
| 123 |
examples = gr.Examples(examples=["I went to the supermarket yesterday.", "Helen is a good swimmer."],
|
| 124 |
inputs=[english])
|
| 125 |
|
|
|
|
| 104 |
#img1.update(proc1("girl"))
|
| 105 |
#german.update("soijfoijf")
|
| 106 |
|
| 107 |
+
#btn2.click(proc1,inputs="girl "+randStr(),outputs=img1)
|
| 108 |
+
img01=proc1("girl "+randStr())
|
| 109 |
print("\n\nvvv2 "+text+randStr()+"\n\n")
|
| 110 |
|
| 111 |
+
img02=proc2("girl "+randStr())
|
| 112 |
+
#btn3.click(proc2,inputs="girl "+randStr(),outputs=img2)
|
| 113 |
print("\n\nvvv3 "+text+randStr()+"\n\n")
|
| 114 |
|
| 115 |
+
img03=proc3("girl "+randStr())
|
| 116 |
+
#btn4.click(proc3,inputs="girl "+randStr(),outputs=img3)
|
| 117 |
print("\n\nvvv4 "+text+randStr()+"\n\n")
|
| 118 |
return {img1:img1.update(img01),img2:img2.update(img02),img3:img3.update(img03),german:"aaaaaddddd"}#pipe(text)[0]["translation_text"]
|
| 119 |
|
| 120 |
+
#btn2.click(bbb22,inputs=english,outputs=german)
|
| 121 |
btn01.click(iimg, inputs=english, outputs=[img1,img2,img3,german])
|
| 122 |
+
btn2.click(proc1,inputs="girl "+randStr(),outputs=img1)
|
| 123 |
+
btn3.click(proc2,inputs="girl "+randStr(),outputs=img2)
|
| 124 |
+
btn4.click(proc3,inputs="girl "+randStr(),outputs=img3)
|
| 125 |
examples = gr.Examples(examples=["I went to the supermarket yesterday.", "Helen is a good swimmer."],
|
| 126 |
inputs=[english])
|
| 127 |
|