nextussocial Claude commited on
Commit
0c4664c
·
1 Parent(s): 5e8bf07

Fix Gradio version compatibility and launch configuration

Browse files

- Pin gradio to 4.44.0 and gradio-client to 1.3.0 to resolve JSON schema parsing error
- Add explicit server configuration for HuggingFace Spaces deployment
- Update YAML metadata to match pinned Gradio version

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

Co-Authored-By: Claude <[email protected]>

Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +1 -1
  3. requirements.txt +2 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🎨
4
  colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: 4.44.1
8
  app_file: app.py
9
  python_version: "3.10"
10
  pinned: false
 
4
  colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
+ sdk_version: 4.44.0
8
  app_file: app.py
9
  python_version: "3.10"
10
  pinned: false
app.py CHANGED
@@ -289,4 +289,4 @@ def create_gradio_app():
289
 
290
  if __name__ == "__main__":
291
  app = create_gradio_app()
292
- app.launch()
 
289
 
290
  if __name__ == "__main__":
291
  app = create_gradio_app()
292
+ app.launch(server_name="0.0.0.0", server_port=7860)
requirements.txt CHANGED
@@ -5,5 +5,6 @@ torchvision>=0.16.0
5
  Pillow>=10.0.0
6
  opencv-python-headless==4.10.0.84
7
  colorgram.py==1.2.0
8
- gradio>=4.44.1
 
9
  huggingface-hub>=0.19.0
 
5
  Pillow>=10.0.0
6
  opencv-python-headless==4.10.0.84
7
  colorgram.py==1.2.0
8
+ gradio==4.44.0
9
+ gradio-client==1.3.0
10
  huggingface-hub>=0.19.0