Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ You are a math expert. Please solve the following math problem.
|
|
47 |
outputs = model.generate(
|
48 |
input_ids=inputs.input_ids,
|
49 |
attention_mask=inputs.attention_mask,
|
50 |
-
max_new_tokens=
|
51 |
temperature=0.7,
|
52 |
pad_token_id=tokenizer.eos_token_id,
|
53 |
use_cache=True,
|
@@ -66,7 +66,7 @@ You are a math expert. Please solve the following math problem.
|
|
66 |
|
67 |
# Streamlit app
|
68 |
st.title("Math Problem Solver")
|
69 |
-
hf_token = st.text_input("Enter your Hugging Face token:")
|
70 |
model_name = "shukdevdatta123/DeepSeek-R1-Math-Solutions"
|
71 |
|
72 |
if hf_token:
|
|
|
47 |
outputs = model.generate(
|
48 |
input_ids=inputs.input_ids,
|
49 |
attention_mask=inputs.attention_mask,
|
50 |
+
max_new_tokens=1200,
|
51 |
temperature=0.7,
|
52 |
pad_token_id=tokenizer.eos_token_id,
|
53 |
use_cache=True,
|
|
|
66 |
|
67 |
# Streamlit app
|
68 |
st.title("Math Problem Solver")
|
69 |
+
hf_token = st.text_input("Enter your Hugging Face token:",type="password")
|
70 |
model_name = "shukdevdatta123/DeepSeek-R1-Math-Solutions"
|
71 |
|
72 |
if hf_token:
|