AchyuthGamer commited on
Commit
c3f3916
·
1 Parent(s): 1d70bcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -143,6 +143,23 @@ with gr.Blocks(css='style.css') as demo:
143
  </div>
144
  """
145
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  with gr.Column(elem_id="col-container"):
147
  with gr.Row(variant="compact"):
148
  input_text = gr.Textbox(
 
143
  </div>
144
  """
145
  )
146
+ with gr.Blocks() as demo:
147
+ with gr.Row():
148
+ image_input = gr.Image()
149
+ # image_output = gr.Image() # download [ok]
150
+ image_output = gr.Gallery(
151
+ label='Output',
152
+ show_label=False,
153
+ elem_id='gallery'
154
+ ).style(
155
+ grid=2,height='auto'
156
+ )
157
+ image_button = gr.Button("Flip")
158
+ image_button.click(
159
+ flip_image,
160
+ inputs=image_input,
161
+ outputs=image_output
162
+ )
163
  with gr.Column(elem_id="col-container"):
164
  with gr.Row(variant="compact"):
165
  input_text = gr.Textbox(