alexkueck commited on
Commit
b4c0777
·
verified ·
1 Parent(s): e1d660b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -213,7 +213,7 @@ def generate_text (prompt, chatbot, history, vektordatenbank, retriever, top_p=0
213
  #pipe = pipeline("text-generation", model=MODEL_NAME_HF, config={"temperature": 0.5, "max_length": 512, "num_return_sequences": 1, "top_k": top_k, "top_p": top_p, "repetition_penalty": repetition_penalty})
214
 
215
  # Erstelle eine HuggingFaceEndPoints-Instanz mit den entsprechenden Endpunkt-Parametern
216
- llm = HuggingFaceEndPoint(
217
  endpoint_url=f"https://api-inference.huggingface.co/models/{MODEL_NAME_HF}",
218
  api_key=hf_token,
219
  model_kwargs=model_kwargs
 
213
  #pipe = pipeline("text-generation", model=MODEL_NAME_HF, config={"temperature": 0.5, "max_length": 512, "num_return_sequences": 1, "top_k": top_k, "top_p": top_p, "repetition_penalty": repetition_penalty})
214
 
215
  # Erstelle eine HuggingFaceEndPoints-Instanz mit den entsprechenden Endpunkt-Parametern
216
+ llm = HuggingFaceEndpoint(
217
  endpoint_url=f"https://api-inference.huggingface.co/models/{MODEL_NAME_HF}",
218
  api_key=hf_token,
219
  model_kwargs=model_kwargs