Karumoon commited on
Commit
be85ad3
·
1 Parent(s): 675fc8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -146,6 +146,7 @@ global m_num
146
  m_num=0
147
  def image_mod(image):
148
  global m_num
 
149
  #while True:
150
  m_num += 1
151
  ppStr=random.choice(m_ddStr)+random.choice(m_ddStr)+random.choice(m_ddStr)+random.choice(m_ddStr)+random.choice(m_ddStr)+random.choice(m_ddStr)
@@ -281,9 +282,9 @@ with gr.Blocks() as demo:
281
  with gr.Column():
282
  german = gr.Textbox(label="German Text")
283
  with gr.Row():
284
- img1=gr.Image()
285
 
286
- translate_btn.click(sesh_start,inputs=english,outputs=img1)#,gr.Image(type="pil"),"image")
287
 
288
 
289
  demo.launch(debug=is_colab, share=is_colab)
 
146
  m_num=0
147
  def image_mod(image):
148
  global m_num
149
+ print("image_mod "+str(m_num))
150
  #while True:
151
  m_num += 1
152
  ppStr=random.choice(m_ddStr)+random.choice(m_ddStr)+random.choice(m_ddStr)+random.choice(m_ddStr)+random.choice(m_ddStr)+random.choice(m_ddStr)
 
282
  with gr.Column():
283
  german = gr.Textbox(label="German Text")
284
  with gr.Row():
285
+ imag1=gr.Image()
286
 
287
+ translate_btn.click(sesh_start,inputs=english,outputs=imag1)#,gr.Image(type="pil"),"image")
288
 
289
 
290
  demo.launch(debug=is_colab, share=is_colab)