Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,6 +23,7 @@ llm = HuggingFaceEndpoint(
|
|
| 23 |
top_p=0.8,
|
| 24 |
top_k=20,
|
| 25 |
max_new_tokens=1024,
|
|
|
|
| 26 |
huggingfacehub_api_token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 27 |
)
|
| 28 |
math_template = ChatPromptTemplate.from_messages([
|
|
|
|
| 23 |
top_p=0.8,
|
| 24 |
top_k=20,
|
| 25 |
max_new_tokens=1024,
|
| 26 |
+
task="conversational",
|
| 27 |
huggingfacehub_api_token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 28 |
)
|
| 29 |
math_template = ChatPromptTemplate.from_messages([
|