Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("= ")
|