Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def split_text(text):
|
|
| 37 |
|
| 38 |
def call_api(prompt_text):
|
| 39 |
url = "https://muryshev-mixtral-api-local.hf.space/completion"
|
| 40 |
-
payload = {"prompt": prompt_text}
|
| 41 |
|
| 42 |
try:
|
| 43 |
response = requests.post(url, json=payload)
|
|
|
|
| 37 |
|
| 38 |
def call_api(prompt_text):
|
| 39 |
url = "https://muryshev-mixtral-api-local.hf.space/completion"
|
| 40 |
+
payload = {"prompt": prompt_text, "temperature": 0, "seed": 42, "repeat_penalty": 1, "top_p": 0.95}
|
| 41 |
|
| 42 |
try:
|
| 43 |
response = requests.post(url, json=payload)
|