Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
CHANGED
|
@@ -22,6 +22,18 @@ ENV HF_HOME=/home/user/.cache/huggingface
|
|
| 22 |
ENV TRANSFORMERS_CACHE=/home/user/.cache/huggingface/transformers
|
| 23 |
ENV HAYSTACK_TELEMETRY_ENABLED=False
|
| 24 |
ENV HAYSTACK_PROGRESS_BARS=False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
# Default command to run your app
|
| 27 |
CMD ["python", "main.py"]
|
|
|
|
| 22 |
ENV TRANSFORMERS_CACHE=/home/user/.cache/huggingface/transformers
|
| 23 |
ENV HAYSTACK_TELEMETRY_ENABLED=False
|
| 24 |
ENV HAYSTACK_PROGRESS_BARS=False
|
| 25 |
+
ENV MODEL=openai/gpt-oss-20b
|
| 26 |
+
# Model Parameters
|
| 27 |
+
MODEL_TEMPERATURE=0.7
|
| 28 |
+
MODEL_MAX_TOKENS=512
|
| 29 |
+
MODEL_TOP_P=1.0
|
| 30 |
+
|
| 31 |
+
# Server Configuration (optional)
|
| 32 |
+
HOST=0.0.0.0
|
| 33 |
+
PORT=8000
|
| 34 |
+
|
| 35 |
+
# CORS Origins (for production, specify your frontend domain)
|
| 36 |
+
CORS_ORIGINS=http://localhost:3000,http://localhost:5173,https://your-frontend-domain.com
|
| 37 |
|
| 38 |
# Default command to run your app
|
| 39 |
CMD ["python", "main.py"]
|