Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
|
@@ -14,12 +14,8 @@ RUN python3 -c 'from huggingface_hub import hf_hub_download; \
|
|
| 14 |
hf_hub_download(repo_id=repo, filename="Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", local_dir="/app"); \
|
| 15 |
hf_hub_download(repo_id=repo, filename="mmproj-Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-f16.gguf", local_dir="/app")'
|
| 16 |
|
| 17 |
-
#
|
| 18 |
-
RUN python3 -c '
|
| 19 |
-
import glob; \
|
| 20 |
-
css = "<style>body, html { background: linear-gradient(135deg, #0f172a, #2e1065) !important; color: #f3e8ff !important; } .chat-message, textarea, input, select { background-color: #1e1b4b !important; border: 1px solid #7e22ce !important; color: #ffffff !important; } button { background: linear-gradient(90deg, #4f46e5, #9333ea) !important; color: #ffffff !important; border: none !important; }</style></head>"; \
|
| 21 |
-
files = glob.glob("/**/public/index.html", recursive=True); \
|
| 22 |
-
[open(f, "w").write(open(f, "r").read().replace("</head>", css)) for f in files]'
|
| 23 |
|
| 24 |
CMD ["--server", \
|
| 25 |
"-m", "/app/Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", \
|
|
|
|
| 14 |
hf_hub_download(repo_id=repo, filename="Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", local_dir="/app"); \
|
| 15 |
hf_hub_download(repo_id=repo, filename="mmproj-Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-f16.gguf", local_dir="/app")'
|
| 16 |
|
| 17 |
+
# Fixed Python injection command (removed leading space)
|
| 18 |
+
RUN python3 -c 'import glob; css = "<style>body, html { background: linear-gradient(135deg, #0f172a, #2e1065) !important; color: #f3e8ff !important; } .chat-message, textarea, input, select { background-color: #1e1b4b !important; border: 1px solid #7e22ce !important; color: #ffffff !important; } button { background: linear-gradient(90deg, #4f46e5, #9333ea) !important; color: #ffffff !important; border: none !important; }</style></head>"; files = glob.glob("/**/public/index.html", recursive=True); [open(f, "w").write(open(f, "r").read().replace("</head>", css)) for f in files]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
CMD ["--server", \
|
| 21 |
"-m", "/app/Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", \
|