Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import pipeline
|
|
6 |
model_name = "internlm/internlm2-math-plus-7b"
|
7 |
token = os.environ.get("HF_TOKEN")
|
8 |
|
9 |
-
generator = pipeline('text-generation', model=model_name, token=token)
|
10 |
|
11 |
# Streamlit app
|
12 |
st.title("Lean 4 Code Generation with TheoremLlama")
|
|
|
6 |
model_name = "internlm/internlm2-math-plus-7b"
|
7 |
token = os.environ.get("HF_TOKEN")
|
8 |
|
9 |
+
generator = pipeline('text-generation', model=model_name, token=token, trust_remote_code=True)
|
10 |
|
11 |
# Streamlit app
|
12 |
st.title("Lean 4 Code Generation with TheoremLlama")
|