Spaces:
Sleeping
Sleeping
PhilSad
commited on
Commit
·
002db2a
1
Parent(s):
9ae2cef
save
Browse files- .dockerignore +1 -0
- .gitattributes +1 -0
- .gitignore +1 -0
- DadKnowsSiegeBest-api +0 -1
- app.py +2 -0
- test.py +12 -0
.dockerignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
venv
|
.gitattributes
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
|
1 |
+
./venv/
|
2 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
3 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
4 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
/venv
|
DadKnowsSiegeBest-api
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
Subproject commit f87ff9e0af3e0fbb9a562fce7421d933a164a1af
|
|
|
|
app.py
CHANGED
@@ -38,6 +38,8 @@ async def proxy_mistral(request_data: MistralRequest):
|
|
38 |
}
|
39 |
]
|
40 |
}
|
|
|
|
|
41 |
|
42 |
try:
|
43 |
# Send the request to the Mistral API
|
|
|
38 |
}
|
39 |
]
|
40 |
}
|
41 |
+
|
42 |
+
print("attempting to sendc the request")
|
43 |
|
44 |
try:
|
45 |
# Send the request to the Mistral API
|
test.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import requests
|
2 |
+
url = "https://philsad-dad-knows-best-api.hf.space/proxy/mistral"
|
3 |
+
|
4 |
+
data = {
|
5 |
+
"system_prompt" : 'you are a rapper',
|
6 |
+
"input_text": "who a re you ?"
|
7 |
+
}
|
8 |
+
|
9 |
+
response = requests.post(url, json=data)
|
10 |
+
|
11 |
+
print(response.status_code)
|
12 |
+
print(response.text)
|