Claudz163 commited on
Commit
cb0665f
·
1 Parent(s): b7b26d6

added login

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,8 +1,12 @@
1
  import streamlit as st
2
  from transformers import pipeline
 
3
  from PIL import Image
 
4
 
5
 
 
 
6
  st.header("Character Captions (IN PROGRESS!)")
7
  st.write("Have a character caption any image you upload!")
8
  character = st.selectbox("Choose a character", ["rapper", "monkey", "shrek", "unintelligible"])
 
1
  import streamlit as st
2
  from transformers import pipeline
3
+ from huggingface_hub import login
4
  from PIL import Image
5
+ import os
6
 
7
 
8
+ login(token=os.getenv("HUGGINGFACE_TOKEN"))
9
+
10
  st.header("Character Captions (IN PROGRESS!)")
11
  st.write("Have a character caption any image you upload!")
12
  character = st.selectbox("Choose a character", ["rapper", "monkey", "shrek", "unintelligible"])