rajistics commited on
Commit
4aec448
β€’
1 Parent(s): 054c907

moved examples

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,6 +30,7 @@ def translation(text,target):
30
  demo = gr.Blocks()
31
  with demo:
32
  image_file = gr.Image(type="pil")
 
33
  b1 = gr.Button("Recognize Image")
34
  text = gr.Textbox()
35
  b1.click(image_to_text, inputs=image_file, outputs=text)
@@ -37,6 +38,5 @@ with demo:
37
  b2 = gr.Button("Translation")
38
  out1 = gr.Textbox()
39
  b2.click(translation, inputs=[text,target], outputs=out1)
40
- examples = gr.Examples(examples=[["003.jpg"],["126.jpg"],["401.jpg"]],inputs=[image_file])
41
  #examples = gr.Examples(examples=[["003.jpg"]],inputs=[image_file])
42
  demo.launch()
 
30
  demo = gr.Blocks()
31
  with demo:
32
  image_file = gr.Image(type="pil")
33
+ examples = gr.Examples(examples=[["003.jpg"],["126.jpg"],["401.jpg"]],inputs=[image_file])
34
  b1 = gr.Button("Recognize Image")
35
  text = gr.Textbox()
36
  b1.click(image_to_text, inputs=image_file, outputs=text)
 
38
  b2 = gr.Button("Translation")
39
  out1 = gr.Textbox()
40
  b2.click(translation, inputs=[text,target], outputs=out1)
 
41
  #examples = gr.Examples(examples=[["003.jpg"]],inputs=[image_file])
42
  demo.launch()