Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,12 +18,10 @@ if "HUGGINGFACEHUB_API_TOKEN" not in os.environ:
|
|
| 18 |
|
| 19 |
# --- LLM and Template Configuration ---
|
| 20 |
llm = HuggingFaceEndpoint(
|
| 21 |
-
repo_id="
|
| 22 |
temperature=0.7,
|
| 23 |
-
top_p=0.
|
| 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([
|
|
|
|
| 18 |
|
| 19 |
# --- LLM and Template Configuration ---
|
| 20 |
llm = HuggingFaceEndpoint(
|
| 21 |
+
repo_id="meta-llama/Llama-3.2-3B-Instruct",
|
| 22 |
temperature=0.7,
|
| 23 |
+
top_p=0.9,
|
|
|
|
| 24 |
max_new_tokens=1024,
|
|
|
|
| 25 |
huggingfacehub_api_token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 26 |
)
|
| 27 |
math_template = ChatPromptTemplate.from_messages([
|