Deltan2002 commited on
Commit
3fce1a1
·
verified ·
1 Parent(s): 401f179

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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 or length == 0.0:
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