ccm commited on
Commit
7623dc6
·
verified ·
1 Parent(s): 708fcdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -100,9 +100,7 @@ def reply(message: str, history: list[str]) -> str:
100
  rag_prompt = preprocess(message)
101
 
102
  # Generate a response from the language model
103
- response = llm(
104
- rag_prompt, max_new_tokens=512, return_full_text=False, device="cuda"
105
- )
106
 
107
  # Return the generated response
108
  return response[0]["generated_text"].strip("= ")
 
100
  rag_prompt = preprocess(message)
101
 
102
  # Generate a response from the language model
103
+ response = llm(rag_prompt, max_new_tokens=512, return_full_text=False)
 
 
104
 
105
  # Return the generated response
106
  return response[0]["generated_text"].strip("= ")