Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ async def generate_text(request: RequestModel):
|
|
| 55 |
full_prompt = DEFAULT_PROMPT + request.text
|
| 56 |
|
| 57 |
# Utilisation de l'API Ollama
|
| 58 |
-
res = requests.post('http://
|
| 59 |
"prompt": full_prompt,
|
| 60 |
"stream": False,
|
| 61 |
"model": "llama3"
|
|
|
|
| 55 |
full_prompt = DEFAULT_PROMPT + request.text
|
| 56 |
|
| 57 |
# Utilisation de l'API Ollama
|
| 58 |
+
res = requests.post('http://localhost:11434/api/generate', json={
|
| 59 |
"prompt": full_prompt,
|
| 60 |
"stream": False,
|
| 61 |
"model": "llama3"
|