Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def gen(prompt, model='gpt'):
|
|
14 |
API_URL = "https://api-inference.huggingface.co/models/openchat/openchat_3.5"
|
15 |
|
16 |
payload = {
|
17 |
-
"
|
18 |
}
|
19 |
|
20 |
response = requests.post(API_URL, headers=headers, json=payload, timeout=timeout)
|
|
|
14 |
API_URL = "https://api-inference.huggingface.co/models/openchat/openchat_3.5"
|
15 |
|
16 |
payload = {
|
17 |
+
"inputs": prompt
|
18 |
}
|
19 |
|
20 |
response = requests.post(API_URL, headers=headers, json=payload, timeout=timeout)
|