ysharma HF Staff commited on
Commit
3556bb1
·
1 Parent(s): c1c164e

update layout with a box around examples

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -69,13 +69,10 @@ with gr.Blocks() as demo:
69
  direction_html = gr.HTML(value="<h4>👇Upload a Dog or a Cat image to get started or simply Click one of the examples👇</h4>", visible=True)
70
  with gr.Row():
71
  image_in = gr.Image(type="pil", label="Start by uploading an image of a Cat or a Dog that you want to translate")
72
- gr.Examples(
73
- examples=[os.path.join(os.path.dirname(__file__), "dog11.jpg"), os.path.join(os.path.dirname(__file__), "cat11.jpg")],
74
  inputs=image_in,
75
- #outputs=im_2,
76
- fn=inversion,
77
- #cache_examples=True,
78
- )
79
  with gr.Column():
80
  btn_inversion = gr.Button("Get input noise and image caption",visible=False )
81
  with gr.Row():
 
69
  direction_html = gr.HTML(value="<h4>👇Upload a Dog or a Cat image to get started or simply Click one of the examples👇</h4>", visible=True)
70
  with gr.Row():
71
  image_in = gr.Image(type="pil", label="Start by uploading an image of a Cat or a Dog that you want to translate")
72
+ with gr.Box():
73
+ gr.Examples( examples=[os.path.join(os.path.dirname(__file__), "dog11.jpg"), os.path.join(os.path.dirname(__file__), "cat11.jpg")],
74
  inputs=image_in,
75
+ fn=inversion,)
 
 
 
76
  with gr.Column():
77
  btn_inversion = gr.Button("Get input noise and image caption",visible=False )
78
  with gr.Row():