Oliver Grainge commited on
Commit
5b78c78
·
1 Parent(s): b4429b4

adding code

Browse files
Files changed (2) hide show
  1. app.py +6 -3
  2. requirements.txt +2 -1
app.py CHANGED
@@ -179,6 +179,9 @@ with gr.Blocks(title="Visual Place Recognition Demo") as demo:
179
 
180
  # Launch the application
181
  if __name__ == "__main__":
182
- # For Hugging Face Spaces, Gradio automatically detects the environment
183
- # and uses appropriate settings (no additional configuration needed)
184
- demo.launch()
 
 
 
 
179
 
180
  # Launch the application
181
  if __name__ == "__main__":
182
+ # For Hugging Face Spaces deployment
183
+ demo.launch(
184
+ server_name="0.0.0.0",
185
+ server_port=7860,
186
+ share=False
187
+ )
requirements.txt CHANGED
@@ -1,6 +1,7 @@
1
  torch>=1.9.0
2
  torchvision>=0.10.0
3
- gradio>=3.0.0,<4.0.0
 
4
  huggingface_hub>=0.19.4,<0.20.0
5
  Pillow>=8.0.0
6
  numpy>=1.21.0
 
1
  torch>=1.9.0
2
  torchvision>=0.10.0
3
+ gradio==3.35.0
4
+ pydantic==2.10.6
5
  huggingface_hub>=0.19.4,<0.20.0
6
  Pillow>=8.0.0
7
  numpy>=1.21.0