Spaces:
Sleeping
Sleeping
Ved Gupta
commited on
Commit
·
96f0c46
1
Parent(s):
818aa03
Update Dockerfile and README.md
Browse filesThis commit updates the Dockerfile by commenting out some lines and modifies the README.md file by changing the API endpoint URLs.
- Dockerfile +5 -4
- README.md +3 -3
Dockerfile
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
FROM quay.io/go-skynet/local-ai:v2.7.0-ffmpeg-core
|
2 |
|
3 |
-
RUN wget -q "https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.2-GGUF/resolve/main/mistral-7b-instruct-v0.2.Q4_0.gguf" -O models/mistral-7b-instruct-v0.2.Q4_0.gguf
|
4 |
-
RUN wget -q "https://huggingface.co/TheBloke/Luna-AI-Llama2-Uncensored-GGUF/resolve/main/luna-ai-llama2-uncensored.Q4_0.gguf" -O models/luna-ai-llama2
|
5 |
-
COPY models/* models/
|
6 |
|
7 |
EXPOSE 8080
|
8 |
|
9 |
-
CMD ["--models-path", "./models", "--context-size", "700", "--threads", "4"]
|
|
|
|
1 |
FROM quay.io/go-skynet/local-ai:v2.7.0-ffmpeg-core
|
2 |
|
3 |
+
# RUN wget -q "https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.2-GGUF/resolve/main/mistral-7b-instruct-v0.2.Q4_0.gguf" -O models/mistral-7b-instruct-v0.2.Q4_0.gguf
|
4 |
+
# RUN wget -q "https://huggingface.co/TheBloke/Luna-AI-Llama2-Uncensored-GGUF/resolve/main/luna-ai-llama2-uncensored.Q4_0.gguf" -O models/luna-ai-llama2
|
5 |
+
# COPY models/* models/
|
6 |
|
7 |
EXPOSE 8080
|
8 |
|
9 |
+
# CMD ["--models-path", "./models", "--context-size", "700", "--threads", "4"]
|
10 |
+
CMD ["phi2"]
|
README.md
CHANGED
@@ -10,15 +10,15 @@ app_port: 8080
|
|
10 |
|
11 |
|
12 |
```bash
|
13 |
-
curl https://innovatorved-
|
14 |
|
15 |
-
curl https://innovatorved-
|
16 |
"model": "gpt-3.5-turbo",
|
17 |
"messages": [{"role": "user", "content": "How are you?"}],
|
18 |
"temperature": 0.9
|
19 |
}'
|
20 |
|
21 |
-
curl https://innovatorved-
|
22 |
"model": "luna-ai-llama2",
|
23 |
"messages": [{"role": "user", "content": "How are you?"}],
|
24 |
"temperature": 0.9
|
|
|
10 |
|
11 |
|
12 |
```bash
|
13 |
+
curl https://innovatorved-api.hf.space/v1/models
|
14 |
|
15 |
+
curl https://innovatorved-api.hf.space/v1/chat/completions -H "Content-Type: application/json" -d '{
|
16 |
"model": "gpt-3.5-turbo",
|
17 |
"messages": [{"role": "user", "content": "How are you?"}],
|
18 |
"temperature": 0.9
|
19 |
}'
|
20 |
|
21 |
+
curl https://innovatorved-api.hf.space/v1/chat/completions -H "Content-Type: application/json" -d '{
|
22 |
"model": "luna-ai-llama2",
|
23 |
"messages": [{"role": "user", "content": "How are you?"}],
|
24 |
"temperature": 0.9
|