Spaces:
Runtime error
Runtime error
gaspar-avit
commited on
Commit
•
57c8a48
1
Parent(s):
1a4a97e
Upload app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,7 @@ import subprocess
|
|
6 |
import sys
|
7 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "streamlit==1.19.0"])
|
8 |
|
9 |
-
|
10 |
-
import streamlit as st
|
11 |
import pandas as pd
|
12 |
import numpy as np
|
13 |
import json
|
@@ -197,7 +196,7 @@ def query_generate(text):
|
|
197 |
response = requests.post(API_URL, headers=headers, json=payload)
|
198 |
return response.content
|
199 |
|
200 |
-
|
201 |
def generate_poster(movie_data):
|
202 |
"""
|
203 |
Function for recommending movies
|
@@ -294,7 +293,7 @@ if __name__ == "__main__":
|
|
294 |
|
295 |
if is_clicked:
|
296 |
poster = generate_poster(data[data.title_year==selected_movie])
|
297 |
-
st.cache_data.clear()
|
298 |
|
299 |
|
300 |
_= """
|
|
|
6 |
import sys
|
7 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "streamlit==1.19.0"])
|
8 |
|
9 |
+
import streamlit as st; print(st.__version__)
|
|
|
10 |
import pandas as pd
|
11 |
import numpy as np
|
12 |
import json
|
|
|
196 |
response = requests.post(API_URL, headers=headers, json=payload)
|
197 |
return response.content
|
198 |
|
199 |
+
#@st.cache_data
|
200 |
def generate_poster(movie_data):
|
201 |
"""
|
202 |
Function for recommending movies
|
|
|
293 |
|
294 |
if is_clicked:
|
295 |
poster = generate_poster(data[data.title_year==selected_movie])
|
296 |
+
#st.cache_data.clear()
|
297 |
|
298 |
|
299 |
_= """
|