gaspar-avit commited on
Commit
9fda244
1 Parent(s): 53512de

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +5 -0
  2. requirements.txt +0 -1
app.py CHANGED
@@ -9,6 +9,8 @@ import json
9
  import requests
10
  import os
11
  import io
 
 
12
 
13
  from streamlit import session_state as session
14
  from datetime import time, datetime
@@ -18,6 +20,9 @@ from htbuilder.units import percent, px
18
  from htbuilder.funcs import rgba, rgb
19
  from PIL import Image
20
 
 
 
 
21
  ###############################
22
  ## --- GLOBAL VARIABLES ---- ##
23
  ###############################
 
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
 
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
  ###############################
27
  ## --- GLOBAL VARIABLES ---- ##
28
  ###############################
requirements.txt CHANGED
@@ -5,4 +5,3 @@ sentence-transformers
5
  diffusers
6
  accelerate
7
  htbuilder
8
- streamlit==1.18.0
 
5
  diffusers
6
  accelerate
7
  htbuilder