Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,8 @@ import streamlit as st
|
|
| 5 |
import requests
|
| 6 |
import os
|
| 7 |
|
|
|
|
|
|
|
| 8 |
huggingface_api_key = os.getenv("HUGGINGFACE_API")
|
| 9 |
|
| 10 |
|
|
@@ -48,7 +50,7 @@ def main():
|
|
| 48 |
|
| 49 |
st.header("Image to Story")
|
| 50 |
length = st.number_input("Length")
|
| 51 |
-
if not length
|
| 52 |
length = 10
|
| 53 |
uploaded_file = st.file_uploader("Choose an Image", type="jpg")
|
| 54 |
|
|
|
|
| 5 |
import requests
|
| 6 |
import os
|
| 7 |
|
| 8 |
+
|
| 9 |
+
load_dotenv(find_dotenv())
|
| 10 |
huggingface_api_key = os.getenv("HUGGINGFACE_API")
|
| 11 |
|
| 12 |
|
|
|
|
| 50 |
|
| 51 |
st.header("Image to Story")
|
| 52 |
length = st.number_input("Length")
|
| 53 |
+
if not length:
|
| 54 |
length = 10
|
| 55 |
uploaded_file = st.file_uploader("Choose an Image", type="jpg")
|
| 56 |
|