Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- 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 |
|