alexkueck commited on
Commit
71207a8
·
1 Parent(s): f1867bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -294,9 +294,9 @@ def generate(text, history, rag_option, model_option, temperature=0.5, max_new_
294
  #inference allg:
295
  data = {
296
  "inputs": prompt,
297
- "options": {"max_new_tokens": 1024},
298
  }
299
- response= requests.post(API_URL, headers=HEADERS, json=prompt)
300
  result = response.json()
301
  print("result:------------------")
302
  chatbot_response = result[0]['generated_text']
 
294
  #inference allg:
295
  data = {
296
  "inputs": prompt,
297
+ #"options": {"max_new_tokens": 1024},
298
  }
299
+ response= requests.post(API_URL, headers=HEADERS, json=data)
300
  result = response.json()
301
  print("result:------------------")
302
  chatbot_response = result[0]['generated_text']