Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -463,12 +463,9 @@ def generate_text (prompt, chatbot, history, rag_option, model_option, openai_ap
|
|
463 |
resulti = llm_chain(llm, history_text_und_prompt)
|
464 |
result = resulti.strip()
|
465 |
else:
|
466 |
-
data = {
|
467 |
-
"inputs": prompt,
|
468 |
-
"options": {"max_new_tokens": max_new_tokens},
|
469 |
-
}
|
470 |
response = requests.post(API_URL, headers=headers, json=data)
|
471 |
-
result= response.json()
|
472 |
|
473 |
|
474 |
|
|
|
463 |
resulti = llm_chain(llm, history_text_und_prompt)
|
464 |
result = resulti.strip()
|
465 |
else:
|
466 |
+
data = {"inputs": prompt, "options": {"max_new_tokens": max_new_tokens},}
|
|
|
|
|
|
|
467 |
response = requests.post(API_URL, headers=headers, json=data)
|
468 |
+
result = response.json()
|
469 |
|
470 |
|
471 |
|