AMontiB commited on
Commit
b8c4518
·
1 Parent(s): d8aadee

fix: upgrade to Gradio 5.0.1 and configure server for HF Spaces

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +2 -2
  3. requirements.txt +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🔍
4
  colorFrom: red
5
  colorTo: yellow
6
  sdk: gradio
7
- sdk_version: 4.44.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
4
  colorFrom: red
5
  colorTo: yellow
6
  sdk: gradio
7
+ sdk_version: 5.0.1
8
  app_file: app.py
9
  pinned: false
10
  license: mit
app.py CHANGED
@@ -113,5 +113,5 @@ with gr.Blocks(title="Deepfake Detection", theme=gr.themes.Soft()) as demo:
113
  )
114
 
115
  if __name__ == "__main__":
116
- # For HF Spaces, share is automatically enabled
117
- demo.launch()
 
113
  )
114
 
115
  if __name__ == "__main__":
116
+ # For HF Spaces, configure server settings
117
+ demo.launch(server_name="0.0.0.0", server_port=7860)
requirements.txt CHANGED
@@ -30,4 +30,4 @@ tqdm==4.67.1
30
  albumentations
31
  ftfy
32
  open-clip-torch
33
- gradio
 
30
  albumentations
31
  ftfy
32
  open-clip-torch
33
+ gradio==5.0.1