Rooni commited on
Commit
9cb5ac6
·
1 Parent(s): c14b7bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- "messages": [{"role": "user", "content": prompt}]
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
+ "imputs": prompt
18
  }
19
 
20
  response = requests.post(API_URL, headers=headers, json=payload, timeout=timeout)