Spaces:
Runtime error
Runtime error
gaspar-avit
commited on
Commit
·
d3c9591
1
Parent(s):
6d82a23
Update app.py
Browse files
app.py
CHANGED
@@ -45,8 +45,6 @@ from kaggle.api.kaggle_api_extended import KaggleApi
|
|
45 |
def link(link, text, **style):
|
46 |
return a(_href=link, _target="_blank", style=styles(**style))(text)
|
47 |
|
48 |
-
def image(src_as_string, **style):
|
49 |
-
return img(src=src_as_string, style=styles(**style))
|
50 |
|
51 |
def layout(*args):
|
52 |
|
@@ -98,17 +96,15 @@ def layout(*args):
|
|
98 |
|
99 |
st.markdown(str(foot), unsafe_allow_html=True)
|
100 |
|
|
|
101 |
def footer():
|
102 |
myargs = [
|
103 |
-
#"Made in ",
|
104 |
-
#image('https://avatars3.githubusercontent.com/u/45109972?s=400&v=4',
|
105 |
-
# width=px(25), height=px(25)),
|
106 |
-
#" with ❤️ by ",
|
107 |
"Made with ❤️ by ",
|
108 |
-
link("https://www.linkedin.com/in/gaspar-avit
|
109 |
]
|
110 |
layout(*myargs)
|
111 |
|
|
|
112 |
def authenticate_kaggle():
|
113 |
# Connect to kaggle API
|
114 |
|
@@ -317,12 +313,3 @@ if __name__ == "__main__":
|
|
317 |
st.runtime.legacy_caching.clear_cache()
|
318 |
|
319 |
|
320 |
-
_= """
|
321 |
-
is_clicked_rerun = None
|
322 |
-
if poster is not None:
|
323 |
-
buffer1, col1, buffer2 = st.columns([1.3, 1, 1])
|
324 |
-
is_clicked_rerun = col1.button(label="Rerun with same movie!")
|
325 |
-
|
326 |
-
if is_clicked_rerun:
|
327 |
-
poster = generate_poster(data[data.title_year==selected_movie])
|
328 |
-
"""
|
|
|
45 |
def link(link, text, **style):
|
46 |
return a(_href=link, _target="_blank", style=styles(**style))(text)
|
47 |
|
|
|
|
|
48 |
|
49 |
def layout(*args):
|
50 |
|
|
|
96 |
|
97 |
st.markdown(str(foot), unsafe_allow_html=True)
|
98 |
|
99 |
+
|
100 |
def footer():
|
101 |
myargs = [
|
|
|
|
|
|
|
|
|
102 |
"Made with ❤️ by ",
|
103 |
+
link("https://www.linkedin.com/in/gaspar-avit/?locale=en_US", "Gaspar Avit"),
|
104 |
]
|
105 |
layout(*myargs)
|
106 |
|
107 |
+
|
108 |
def authenticate_kaggle():
|
109 |
# Connect to kaggle API
|
110 |
|
|
|
313 |
st.runtime.legacy_caching.clear_cache()
|
314 |
|
315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|