AshBlanc commited on
Commit
a314aa6
·
verified ·
1 Parent(s): 441720b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -1,6 +1,12 @@
 
1
  import streamlit as st
 
2
  from transformers import pipeline
3
 
 
 
 
 
4
  # Load the gated model
5
  model_name = "RickyDeSkywalker/TheoremLlama"
6
  generator = pipeline('text-generation', model=model_name)
 
1
+ import os
2
  import streamlit as st
3
+ from huggingface_hub import login
4
  from transformers import pipeline
5
 
6
+ # Authenticate with Hugging Face Hub
7
+ user_token = os.getenv(HF_TOKEN) # Replace with your actual Hugging Face user token
8
+ login(user_token)
9
+
10
  # Load the gated model
11
  model_name = "RickyDeSkywalker/TheoremLlama"
12
  generator = pipeline('text-generation', model=model_name)