Oliver Hahn commited on
Commit
5f99e47
·
1 Parent(s): 9eae495
app.py CHANGED
@@ -47,12 +47,7 @@ def gradio_primaps(image_path, threshold, architecture):
47
  return visualize_demo(image, primaps)
48
 
49
 
50
- if __name__ == '__main__':
51
- # Example image paths
52
- example_images = [
53
- "assets/demo_examples/example.jpg",
54
- ]
55
-
56
  # Gradio interface
57
  interface = gr.Interface(
58
  fn=gradio_primaps,
@@ -65,7 +60,7 @@ if __name__ == '__main__':
65
  title="PriMaPs Demo",
66
  description="Upload an image and adjust the threshold to visualize PriMaPs.",
67
  examples=[
68
- [example_images[0], 0.4, 'dino_vitb'],
69
  ]
70
  )
71
 
 
47
  return visualize_demo(image, primaps)
48
 
49
 
50
+ if __name__ == '__main__':
 
 
 
 
 
51
  # Gradio interface
52
  interface = gr.Interface(
53
  fn=gradio_primaps,
 
60
  title="PriMaPs Demo",
61
  description="Upload an image and adjust the threshold to visualize PriMaPs.",
62
  examples=[
63
+ ["example.jpg", 0.4, 'dino_vitb'],
64
  ]
65
  )
66
 
assets/.DS_Store DELETED
Binary file (6.15 kB)
 
assets/example.jpg → example.jpg RENAMED
File without changes