Spaces:
Runtime error
Runtime error
Commit ·
43b94f9
1
Parent(s): f4b3f9f
Add OAuth dependencies to fix Gradio OAuth initialization error
Browse files- Update gradio dependency to gradio[oauth]>=4.0.0 to include OAuth extras
- Add explicit itsdangerous>=2.0.0 and starlette>=0.27.0 dependencies
- Fixes ImportError: Cannot initialize OAuth due to missing itsdangerous module
- Enables proper HuggingFace OAuth authentication in Spaces deployment
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- requirements-hf.txt +5 -1
requirements-hf.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
# Optimized for deployment
|
| 3 |
|
| 4 |
# Core dependencies
|
| 5 |
-
gradio>=4.0.0
|
| 6 |
torch>=2.0.0
|
| 7 |
transformers>=4.53.0
|
| 8 |
diffusers>=0.30.0
|
|
@@ -23,6 +23,10 @@ mcp>=1.0.0
|
|
| 23 |
# HuggingFace integration
|
| 24 |
huggingface-hub>=0.20.0
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
# Utilities
|
| 27 |
pillow>=10.0.0
|
| 28 |
numpy>=1.24.0
|
|
|
|
| 2 |
# Optimized for deployment
|
| 3 |
|
| 4 |
# Core dependencies
|
| 5 |
+
gradio[oauth]>=4.0.0
|
| 6 |
torch>=2.0.0
|
| 7 |
transformers>=4.53.0
|
| 8 |
diffusers>=0.30.0
|
|
|
|
| 23 |
# HuggingFace integration
|
| 24 |
huggingface-hub>=0.20.0
|
| 25 |
|
| 26 |
+
# OAuth and session management
|
| 27 |
+
itsdangerous>=2.0.0
|
| 28 |
+
starlette>=0.27.0
|
| 29 |
+
|
| 30 |
# Utilities
|
| 31 |
pillow>=10.0.0
|
| 32 |
numpy>=1.24.0
|