Karumoon commited on
Commit
a6257ff
1 Parent(s): 9a88aac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -73,6 +73,9 @@ def randStr():
73
  pp=["a","b","c","d","e","f","g","h"]
74
  str="";
75
  str+=random.choice(pp)+random.choice(pp)+random.choice(pp)
 
 
 
76
  return str
77
 
78
  def bbb22(text):
@@ -99,12 +102,15 @@ with gr.Blocks() as demo:
99
  #img1.update(proc1("girl"))
100
  #german.update("soijfoijf")
101
  img01=proc1("girl "+randStr())
 
102
  img02=proc2("girl "+randStr())
 
103
  img03=proc3("girl "+randStr())
104
- return {img1:img1.update(),img2:img2.update(),img3:img3.update()}#pipe(text)[0]["translation_text"]
 
105
 
106
  btn2.click(bbb22,inputs=english,outputs=german)
107
- btn01.click(iimg, inputs=english, outputs=[img1,img2,img3])
108
  examples = gr.Examples(examples=["I went to the supermarket yesterday.", "Helen is a good swimmer."],
109
  inputs=[english])
110
 
 
73
  pp=["a","b","c","d","e","f","g","h"]
74
  str="";
75
  str+=random.choice(pp)+random.choice(pp)+random.choice(pp)
76
+ str+=random.choice(pp)+random.choice(pp)+random.choice(pp)
77
+ str+=random.choice(pp)+random.choice(pp)+random.choice(pp)
78
+ str+=random.choice(pp)+random.choice(pp)+random.choice(pp)
79
  return str
80
 
81
  def bbb22(text):
 
102
  #img1.update(proc1("girl"))
103
  #german.update("soijfoijf")
104
  img01=proc1("girl "+randStr())
105
+ print("\n\nvvv"+text+randStr()+"\n\n")
106
  img02=proc2("girl "+randStr())
107
+ print("\n\nvvv"+text+randStr()+"\n\n")
108
  img03=proc3("girl "+randStr())
109
+ print("\n\nvvv"+text+randStr()+"\n\n")
110
+ return {img1:img1.update(),img2:img2.update(),img3:img3.update(),german:"ddddd"}#pipe(text)[0]["translation_text"]
111
 
112
  btn2.click(bbb22,inputs=english,outputs=german)
113
+ btn01.click(iimg, inputs=english, outputs=[img1,img2,img3,german])
114
  examples = gr.Examples(examples=["I went to the supermarket yesterday.", "Helen is a good swimmer."],
115
  inputs=[english])
116