multimodalart HF Staff commited on
Commit
1618f97
·
verified ·
1 Parent(s): ea99901

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -144,8 +144,6 @@ css = '''#col-container { max-width: 800px; margin: 0 auto; }
144
  .dark .progress-text{color: white !important}
145
  #examples{max-width: 800px; margin: 0 auto; }'''
146
 
147
- is_reset = gr.State(value=False)
148
-
149
  def reset_all():
150
  return [0, 0, 0, 0, False, True]
151
 
@@ -187,7 +185,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
187
  with gr.Column():
188
  image = gr.Image(label="Input Image", type="pil", sources=["upload"])
189
  prev_output = gr.Image(value=None, visible=False)
190
- is_reset = gr.State(value=False)
191
 
192
  with gr.Tab("Camera Controls"):
193
  rotate_deg = gr.Slider(label="Rotate Left–Right (degrees °)", minimum=-90, maximum=90, step=45, value=0)
 
144
  .dark .progress-text{color: white !important}
145
  #examples{max-width: 800px; margin: 0 auto; }'''
146
 
 
 
147
  def reset_all():
148
  return [0, 0, 0, 0, False, True]
149
 
 
185
  with gr.Column():
186
  image = gr.Image(label="Input Image", type="pil", sources=["upload"])
187
  prev_output = gr.Image(value=None, visible=False)
188
+ is_reset = gr.Checkbox(value=False, visible=False)
189
 
190
  with gr.Tab("Camera Controls"):
191
  rotate_deg = gr.Slider(label="Rotate Left–Right (degrees °)", minimum=-90, maximum=90, step=45, value=0)