alexkueck commited on
Commit
d0b9f09
1 Parent(s): 6685ad6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -466,6 +466,8 @@ def generate_text (prompt, chatbot, history, rag_option, model_option, openai_ap
466
  data = {"inputs": prompt, "options": {"max_new_tokens": max_new_tokens},}
467
  response = requests.post(API_URL_TEXT, headers=HEADERS, json=data)
468
  result = response.json()
 
 
469
  chatbot_response = result[0]['generated_text']
470
  print("anzahl tokens gesamt antwort:------------------")
471
  print (len(chatbot_response.split()))
 
466
  data = {"inputs": prompt, "options": {"max_new_tokens": max_new_tokens},}
467
  response = requests.post(API_URL_TEXT, headers=HEADERS, json=data)
468
  result = response.json()
469
+ print("responseresult.............................")
470
+ print(result)
471
  chatbot_response = result[0]['generated_text']
472
  print("anzahl tokens gesamt antwort:------------------")
473
  print (len(chatbot_response.split()))