nextussocial Claude commited on
Commit
d79f4cf
·
1 Parent(s): 1513d5d

Upgrade Gradio to v4.44.1 and improve launch configuration

Browse files

- Update Gradio from 4.44.0 to 4.44.1
- Fix Image component sources parameter syntax
- Add share=True and show_error=True to launch config for better server deployment
- Add .gitignore to exclude Python cache files

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

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

Files changed (3) hide show
  1. .gitignore +22 -0
  2. app.py +7 -2
  3. requirements.txt +1 -1
.gitignore ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Python cache files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # Virtual environments
7
+ venv/
8
+ env/
9
+ ENV/
10
+
11
+ # IDE files
12
+ .vscode/
13
+ .idea/
14
+
15
+ # OS files
16
+ .DS_Store
17
+ Thumbs.db
18
+
19
+ # Temporary files
20
+ *.tmp
21
+ *.temp
22
+ design_tokens.*
app.py CHANGED
@@ -199,7 +199,7 @@ def create_gradio_app():
199
  input_image = gr.Image(
200
  label="Upload UI Screenshot",
201
  type="pil",
202
- sources=['upload', 'clipboard'],
203
  height=400
204
  )
205
 
@@ -289,4 +289,9 @@ def create_gradio_app():
289
 
290
  if __name__ == "__main__":
291
  app = create_gradio_app()
292
- app.launch(server_name="0.0.0.0", server_port=7860)
 
 
 
 
 
 
199
  input_image = gr.Image(
200
  label="Upload UI Screenshot",
201
  type="pil",
202
+ sources=["upload", "clipboard"],
203
  height=400
204
  )
205
 
 
289
 
290
  if __name__ == "__main__":
291
  app = create_gradio_app()
292
+ app.launch(
293
+ server_name="0.0.0.0",
294
+ server_port=7860,
295
+ share=True,
296
+ show_error=True
297
+ )
requirements.txt CHANGED
@@ -5,6 +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.0
9
  gradio-client==1.3.0
10
  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.1
9
  gradio-client==1.3.0
10
  huggingface-hub>=0.19.0