Spaces:
Running
on
T4
Running
on
T4
FantasticGNU
commited on
Commit
•
ea64d45
1
Parent(s):
1960e94
Update app.py
Browse files
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 = ['
|
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=
|
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():
|