alexkueck commited on
Commit
81be4b3
·
verified ·
1 Parent(s): 8526363

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -258,7 +258,7 @@ def generate_text (prompt, chatbot, history, vektordatenbank, retriever, top_p=0
258
  #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})
259
 
260
  # Erstelle eine HuggingFaceEndPoints-Instanz mit den entsprechenden Endpunkt-Parametern
261
- llm = HuggingFaceEndPoint(
262
  endpoint_url=f"https://api-inference.huggingface.co/models/{MODEL_NAME_HF}",
263
  api_key=hf_token,
264
  temperature=0.5,
 
258
  #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})
259
 
260
  # Erstelle eine HuggingFaceEndPoints-Instanz mit den entsprechenden Endpunkt-Parametern
261
+ llm = HuggingFaceEndpoint(
262
  endpoint_url=f"https://api-inference.huggingface.co/models/{MODEL_NAME_HF}",
263
  api_key=hf_token,
264
  temperature=0.5,