FantasticGNU commited on
Commit
ea64d45
1 Parent(s): 1960e94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -166,7 +166,7 @@ def reset_user_input():
166
  def reset_state():
167
  return gr.update(value=''), None, None, [], [], [], PILImage.open('ffffff.png')
168
 
169
- examples = ['crack_concrete.jpg', 'hazelnut_cut.png', 'carpet_normal.jpg']
170
 
171
  with gr.Blocks() as demo:
172
  gr.HTML("""<h1 align="center">Demo of AnomalyGPT</h1>""")
@@ -174,7 +174,7 @@ with gr.Blocks() as demo:
174
  with gr.Row():
175
  with gr.Column(scale=1):
176
  with gr.Row():
177
- image_path = gr.Image(type="filepath", label="Query Image", value='crack_concrete.jpg')
178
  with gr.Row():
179
  normal_img_path = gr.Image(type="filepath", label="Normal Image (optional)", value=None)
180
  with gr.Row():
 
166
  def reset_state():
167
  return gr.update(value=''), None, None, [], [], [], PILImage.open('ffffff.png')
168
 
169
+ examples = ['hazelnut_cut.png', 'carpet_normal.jpg']
170
 
171
  with gr.Blocks() as demo:
172
  gr.HTML("""<h1 align="center">Demo of AnomalyGPT</h1>""")
 
174
  with gr.Row():
175
  with gr.Column(scale=1):
176
  with gr.Row():
177
+ image_path = gr.Image(type="filepath", label="Query Image", value=examples[0])
178
  with gr.Row():
179
  normal_img_path = gr.Image(type="filepath", label="Normal Image (optional)", value=None)
180
  with gr.Row():