Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
-
#
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
1 |
+
# Load and run the model:
|
2 |
+
vllm serve "Tann-dev/sex-chat-dirty-girlfriend"
|
3 |
|
4 |
+
# Call the server using curl:
|
5 |
+
curl -X POST "http://localhost:8000/v1/chat/completions" \
|
6 |
+
-H "Content-Type: application/json" \
|
7 |
+
--data '{
|
8 |
+
"model": "Tann-dev/sex-chat-dirty-girlfriend"
|
9 |
+
"messages": [
|
10 |
+
{"role": "user", "content": "Hello!"}
|
11 |
+
]
|
12 |
+
}'
|