Update app.py
Browse files
app.py
CHANGED
@@ -184,9 +184,9 @@ def generate_text (prompt, chatbot, history, vektordatenbank, top_p=0.6, temper
|
|
184 |
try:
|
185 |
#oder an Hugging Face --------------------------
|
186 |
print("HF Anfrage.......................")
|
187 |
-
model_kwargs={"temperature": 0.5, "max_length": 512, "num_return_sequences": 1, "top_k": top_k, "top_p": top_p, "repetition_penalty": repetition_penalty}
|
188 |
#llm = HuggingFaceHub(repo_id=repo_id, model_kwargs=model_kwargs)
|
189 |
-
llm = HuggingFaceChain(model=MODEL_NAME_HF, model_kwargs={"temperature": 0.5, "max_length": 128})
|
190 |
|
191 |
#Prompt an history anhängen und einen Text daraus machen
|
192 |
history_text_und_prompt = generate_prompt_with_history(prompt, history)
|
|
|
184 |
try:
|
185 |
#oder an Hugging Face --------------------------
|
186 |
print("HF Anfrage.......................")
|
187 |
+
#model_kwargs={"temperature": 0.5, "max_length": 512, "num_return_sequences": 1, "top_k": top_k, "top_p": top_p, "repetition_penalty": repetition_penalty}
|
188 |
#llm = HuggingFaceHub(repo_id=repo_id, model_kwargs=model_kwargs)
|
189 |
+
#llm = HuggingFaceChain(model=MODEL_NAME_HF, model_kwargs={"temperature": 0.5, "max_length": 128})
|
190 |
|
191 |
#Prompt an history anhängen und einen Text daraus machen
|
192 |
history_text_und_prompt = generate_prompt_with_history(prompt, history)
|