Richard Young Claude commited on
Commit
dfc1fdf
·
1 Parent(s): 9faeb41

Fix Gradio deployment issues

Browse files

- Remove Gradio version pin to avoid schema parser bug in 4.44.0
- Configure demo.launch() with server_name and server_port for HF Spaces
- Fixes TypeError: argument of type 'bool' is not iterable
- Fixes ValueError: localhost not accessible

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +1 -2
app.py CHANGED
@@ -560,4 +560,4 @@ Detects damaged headers, incomplete data, and visual artifacts.
560
 
561
 
562
  if __name__ == "__main__":
563
- demo.launch()
 
560
 
561
 
562
  if __name__ == "__main__":
563
+ demo.launch(server_name="0.0.0.0", server_port=7860)
requirements.txt CHANGED
@@ -5,5 +5,4 @@ colorama
5
  numpy
6
  scipy
7
  matplotlib
8
- gradio==4.44.0
9
- huggingface-hub<0.23.0
 
5
  numpy
6
  scipy
7
  matplotlib
8
+ gradio