Spaces:
Sleeping
Sleeping
Create requirements.txt
Browse files- requirements.txt +19 -0
requirements.txt
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# requirements.txt
|
| 2 |
+
fastapi
|
| 3 |
+
uvicorn[standard] # ASGI server
|
| 4 |
+
python-dotenv # For local .env loading
|
| 5 |
+
requests
|
| 6 |
+
# Core ML
|
| 7 |
+
torch # Or tensorflow if preferred, but diffusers often favors torch
|
| 8 |
+
transformers
|
| 9 |
+
diffusers[torch]
|
| 10 |
+
accelerate # Helps optimize model loading and inference
|
| 11 |
+
# Image/Video Handling
|
| 12 |
+
Pillow
|
| 13 |
+
imageio # For potential video frame handling if needed
|
| 14 |
+
# API Extras
|
| 15 |
+
pydantic
|
| 16 |
+
slowapi # For rate limiting
|
| 17 |
+
# Optional: For better performance on supported hardware
|
| 18 |
+
# bitsandbytes # For 8-bit/4-bit quantization (check compatibility)
|
| 19 |
+
# xformers # For memory-efficient attention (if GPU available)
|