Spaces:
Runtime error
Runtime error
gaspar-avit
commited on
Commit
·
9d0fc91
1
Parent(s):
4cb66c5
Upload app.py
Browse files
app.py
CHANGED
@@ -1,27 +1,29 @@
|
|
1 |
## Alternative movie poster generator
|
2 |
|
3 |
|
4 |
-
# Environment variables
|
5 |
-
import os
|
6 |
-
os.environ['KAGGLE_USERNAME'] = st.secrets['username']
|
7 |
-
os.environ['KAGGLE_KEY'] = st.secrets['key']
|
8 |
-
os.environ['KAGGLE_CONFIG_DIR'] = '/home/appuser/.kaggle/kaggle.json'
|
9 |
-
|
10 |
|
11 |
import streamlit as st
|
12 |
import pandas as pd
|
13 |
import numpy as np
|
14 |
import json
|
15 |
import requests
|
|
|
16 |
|
17 |
from streamlit import session_state as session
|
18 |
from datetime import time, datetime
|
19 |
from zipfile import ZipFile
|
20 |
-
from kaggle.api.kaggle_api_extended import KaggleApi
|
21 |
from sentence_transformers import SentenceTransformer
|
22 |
from diffusers import DiffusionPipeline
|
23 |
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
###############################
|
26 |
## ------- FUNCTIONS ------- ##
|
27 |
###############################
|
|
|
1 |
## Alternative movie poster generator
|
2 |
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
import streamlit as st
|
6 |
import pandas as pd
|
7 |
import numpy as np
|
8 |
import json
|
9 |
import requests
|
10 |
+
import os
|
11 |
|
12 |
from streamlit import session_state as session
|
13 |
from datetime import time, datetime
|
14 |
from zipfile import ZipFile
|
|
|
15 |
from sentence_transformers import SentenceTransformer
|
16 |
from diffusers import DiffusionPipeline
|
17 |
|
18 |
|
19 |
+
# Environment variables
|
20 |
+
os.environ['KAGGLE_USERNAME'] = st.secrets['username']
|
21 |
+
os.environ['KAGGLE_KEY'] = st.secrets['key']
|
22 |
+
os.environ['KAGGLE_CONFIG_DIR'] = '/home/appuser/.kaggle/kaggle.json'
|
23 |
+
from kaggle.api.kaggle_api_extended import KaggleApi
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
###############################
|
28 |
## ------- FUNCTIONS ------- ##
|
29 |
###############################
|