Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,19 +42,23 @@ def get_data():
|
|
42 |
|
43 |
|
44 |
# %% app.ipynb 6
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
|
51 |
|
52 |
# %% app.ipynb 7
|
53 |
for col in columns_to_click:
|
54 |
df[col] = df[col].apply(make_clickable_cell)
|
55 |
-
|
56 |
return df
|
57 |
|
|
|
|
|
|
|
|
|
58 |
|
59 |
# %% app.ipynb 2
|
60 |
title = """<h1 align="center">The Large Language Models Landscape</h1>"""
|
|
|
42 |
|
43 |
|
44 |
# %% app.ipynb 6
|
45 |
+
def make_clickable_cell(cell):
|
46 |
+
if pd.isnull(cell):
|
47 |
+
return ""
|
48 |
+
else:
|
49 |
+
return f'<a target="_blank" href="{cell}">{cell}</a>'
|
50 |
|
51 |
|
52 |
# %% app.ipynb 7
|
53 |
for col in columns_to_click:
|
54 |
df[col] = df[col].apply(make_clickable_cell)
|
55 |
+
|
56 |
return df
|
57 |
|
58 |
+
# Load the data to get the columns for setting up datatype
|
59 |
+
dataframe = get_data()
|
60 |
+
dtypes = ["str" if c not in columns_to_click else "html" for c in dataframe.columns]
|
61 |
+
|
62 |
|
63 |
# %% app.ipynb 2
|
64 |
title = """<h1 align="center">The Large Language Models Landscape</h1>"""
|