Francesco commited on
Commit
157ebae
1 Parent(s): 741deae

added storage env var

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -28,8 +28,9 @@ class RetrievalType:
28
 
29
 
30
  Matches = List[Tuple[Document, float]]
31
- USE_STORAGE = os.getenv("USE_STORAGE", "False").lower() in ("true", "1", "t")
32
 
 
33
 
34
  @st.cache_resource
35
  def init():
@@ -148,6 +149,7 @@ def set_song(user_input):
148
  # take first 120 chars
149
  user_input = user_input[:120]
150
  docs, emotions = get_song(user_input, k=max_number_of_songs)
 
151
  songs = []
152
  with placeholder_emotions:
153
  st.markdown("Your emotions: `" + emotions + "`")
 
28
 
29
 
30
  Matches = List[Tuple[Document, float]]
31
+ USE_STORAGE = os.environ.get("USE_STORAGE", "True").lower() in ("true", "t", "1")
32
 
33
+ print("USE_STORAGE", USE_STORAGE)
34
 
35
  @st.cache_resource
36
  def init():
 
149
  # take first 120 chars
150
  user_input = user_input[:120]
151
  docs, emotions = get_song(user_input, k=max_number_of_songs)
152
+ print(docs)
153
  songs = []
154
  with placeholder_emotions:
155
  st.markdown("Your emotions: `" + emotions + "`")