Update app.py
Browse files
app.py
CHANGED
@@ -208,7 +208,8 @@ def generate_text (prompt, chatbot, history, vektordatenbank, retriever, top_p=0
|
|
208 |
llm = HuggingFaceEndpoint(
|
209 |
endpoint_url=f"https://api-inference.huggingface.co/models/{MODEL_NAME_HF}",
|
210 |
api_key=hf_token,
|
211 |
-
|
|
|
212 |
top_k=top_k,
|
213 |
top_p=top_p,
|
214 |
repetition_penalty=repetition_penalty
|
|
|
208 |
llm = HuggingFaceEndpoint(
|
209 |
endpoint_url=f"https://api-inference.huggingface.co/models/{MODEL_NAME_HF}",
|
210 |
api_key=hf_token,
|
211 |
+
temperature= 0.5,
|
212 |
+
max_length = 512,
|
213 |
top_k=top_k,
|
214 |
top_p=top_p,
|
215 |
repetition_penalty=repetition_penalty
|