AshBlanc commited on
Commit
eb35d79
·
verified ·
1 Parent(s): 2f8bcd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -3,13 +3,9 @@ import streamlit as st
3
  from huggingface_hub import login
4
  from transformers import pipeline
5
 
6
- # Authenticate with Hugging Face Hub
7
- HF_TOKEN = os.environ['HF_TOKEN']
8
- login(HF_TOKEN)
9
-
10
  # Load the gated model
11
  model_name = "RickyDeSkywalker/TheoremLlama"
12
- generator = pipeline('text-generation', model=model_name)
13
 
14
  # Streamlit app
15
  st.title("Lean 4 Code Generation with TheoremLlama")
 
3
  from huggingface_hub import login
4
  from transformers import pipeline
5
 
 
 
 
 
6
  # Load the gated model
7
  model_name = "RickyDeSkywalker/TheoremLlama"
8
+ generator = pipeline('text-generation', model=model_name, token=os.getenv("HF_TOKEN"))
9
 
10
  # Streamlit app
11
  st.title("Lean 4 Code Generation with TheoremLlama")