shegga commited on
Commit
3321f40
·
1 Parent(s): 96462ff

🔧 Fix Gradio warnings and optimize for Spaces deployment

Browse files

- Update Gradio to latest version (4.44.1) to remove version warning
- Set share=False as it's not supported on Hugging Face Spaces
- Clean up launch configuration for production deployment

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +1 -1
app.py CHANGED
@@ -472,7 +472,7 @@ def manual_memory_cleanup():
472
 
473
  # Launch the interface
474
  interface.launch(
475
- share=True,
476
  show_error=True,
477
  quiet=False
478
  )
 
472
 
473
  # Launch the interface
474
  interface.launch(
475
+ share=False, # Not supported on Hugging Face Spaces
476
  show_error=True,
477
  quiet=False
478
  )
requirements.txt CHANGED
@@ -2,7 +2,7 @@
2
  torch>=2.0.0
3
  transformers>=4.21.0
4
  datasets>=2.0.0
5
- gradio>=4.44.0
6
 
7
  # Data processing
8
  pandas>=1.5.0
 
2
  torch>=2.0.0
3
  transformers>=4.21.0
4
  datasets>=2.0.0
5
+ gradio>=4.44.1
6
 
7
  # Data processing
8
  pandas>=1.5.0