dawn17 commited on
Commit
34e93e0
·
1 Parent(s): b9d24e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,7 +130,7 @@ method = Gradio(model_path="./checkpoint/model.pt")
130
  demo = gr.Interface(
131
  fn=method.inference,
132
  inputs=[
133
- gr.Image(shape=(32, 32), label="Input Image", value="./samples/bird_and_plane_.jpeg"),
134
  gr.Slider(
135
  minimum=0,
136
  maximum=1,
@@ -161,7 +161,7 @@ demo = gr.Interface(
161
  ),
162
  ],
163
  outputs=[
164
- gr.Image(shape=(32, 32)).style(width=128, height=128),
165
  gr.Label(label="Top Classes"),
166
  ],
167
  examples=[[os.path.join("./samples/", f)] for f in os.listdir("./samples/")]
 
130
  demo = gr.Interface(
131
  fn=method.inference,
132
  inputs=[
133
+ gr.Image(shape=(32, 32), label="Input Image", value="./samples/dog_cat.jpeg"),
134
  gr.Slider(
135
  minimum=0,
136
  maximum=1,
 
161
  ),
162
  ],
163
  outputs=[
164
+ gr.Image(shape=(32, 32)).style(width=256, height=256),
165
  gr.Label(label="Top Classes"),
166
  ],
167
  examples=[[os.path.join("./samples/", f)] for f in os.listdir("./samples/")]