isom5240 commited on
Commit
42c377c
·
verified ·
1 Parent(s): 1c0e5d3

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -0
src/streamlit_app.py CHANGED
@@ -9,6 +9,7 @@ from PIL import Image
9
  st.title("🖼️ Image-to-Text and Text-to-Speech App")
10
 
11
  # Load models
 
12
  image_to_text = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
13
  text_to_speech = pipeline("text-to-speech", model="facebook/mms-tts-eng")
14
 
 
9
  st.title("🖼️ Image-to-Text and Text-to-Speech App")
10
 
11
  # Load models
12
+ HF_TOKEN = st.secrets["HF_TOKEN"]
13
  image_to_text = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
14
  text_to_speech = pipeline("text-to-speech", model="facebook/mms-tts-eng")
15