gaspar-avit commited on
Commit
2be06a2
·
1 Parent(s): 9fda244

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,6 +1,11 @@
1
  ## Alternative movie poster generator
2
 
3
 
 
 
 
 
 
4
 
5
  import streamlit as st
6
  import pandas as pd
@@ -9,9 +14,6 @@ import json
9
  import requests
10
  import os
11
  import io
12
- import subprocess
13
- import sys
14
-
15
  from streamlit import session_state as session
16
  from datetime import time, datetime
17
  from zipfile import ZipFile
@@ -20,7 +22,6 @@ from htbuilder.units import percent, px
20
  from htbuilder.funcs import rgba, rgb
21
  from PIL import Image
22
 
23
- subprocess.check_call([sys.executable, "-m", "pip", "install", "streamlit==1.18.0"])
24
 
25
 
26
  ###############################
 
1
  ## Alternative movie poster generator
2
 
3
 
4
+ # Install newer version of streamlit
5
+ import subprocess
6
+ import sys
7
+ subprocess.check_call([sys.executable, "-m", "pip", "install", "streamlit==1.18.0"])
8
+
9
 
10
  import streamlit as st
11
  import pandas as pd
 
14
  import requests
15
  import os
16
  import io
 
 
 
17
  from streamlit import session_state as session
18
  from datetime import time, datetime
19
  from zipfile import ZipFile
 
22
  from htbuilder.funcs import rgba, rgb
23
  from PIL import Image
24
 
 
25
 
26
 
27
  ###############################