qubvel-hf HF staff commited on
Commit
422d636
1 Parent(s): e5b9884

More fixes

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -12,7 +12,7 @@ from functools import wraps
12
  from copy import deepcopy
13
 
14
 
15
- DEFAULT_TRANSFORM = "CoarseDropout"
16
 
17
  DEFAULT_IMAGE = "images/doctor.webp"
18
  DEFAULT_IMAGE_HEIGHT = 400
@@ -250,8 +250,13 @@ with gr.Blocks() as demo:
250
  interactive=True,
251
  lines=5,
252
  )
 
 
 
 
 
 
253
  button = gr.Button("Run")
254
- #info = gr.Text(interactive=False, label="Image info", value="")
255
  image = gr.Image(
256
  value=DEFAULT_IMAGE,
257
  type="numpy",
 
12
  from copy import deepcopy
13
 
14
 
15
+ DEFAULT_TRANSFORM = "Rotate"
16
 
17
  DEFAULT_IMAGE = "images/doctor.webp"
18
  DEFAULT_IMAGE_HEIGHT = 400
 
250
  interactive=True,
251
  lines=5,
252
  )
253
+ info = gr.TextArea(
254
+ value=f"Image size: {DEFAULT_IMAGE_HEIGHT} x {DEFAULT_IMAGE_WIDTH} (height x width)",
255
+ show_label=False,
256
+ lines=1,
257
+ max_lines=1,
258
+ )
259
  button = gr.Button("Run")
 
260
  image = gr.Image(
261
  value=DEFAULT_IMAGE,
262
  type="numpy",