alexkueck commited on
Commit
db1e055
·
1 Parent(s): 52b53c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -286,7 +286,7 @@ def generate(text, history, rag_option, model_option, temperature=0.5, max_new_
286
  #payload = tokenizer.apply_chat_template(prompt,tokenize=False)
287
  #result = client.text_generation(payload, do_sample=True,return_full_text=False, max_new_tokens=2048,top_p=0.9,temperature=0.6,)
288
  #inference allg:
289
- result= requests.post(API_URL, headers=HEADERS, json="Was ist ein Fjord?")
290
  print("prompt:..................")
291
  print(prompt)
292
  print("result:..................")
 
286
  #payload = tokenizer.apply_chat_template(prompt,tokenize=False)
287
  #result = client.text_generation(payload, do_sample=True,return_full_text=False, max_new_tokens=2048,top_p=0.9,temperature=0.6,)
288
  #inference allg:
289
+ result= requests.post(API_URL, headers=HEADERS, json={"inputs": "Was ist ein Fjord?",})
290
  print("prompt:..................")
291
  print(prompt)
292
  print("result:..................")