update app.py
Browse files
app.py
CHANGED
@@ -31,4 +31,4 @@ with gr.Blocks(css="style.css") as demo:
|
|
31 |
)
|
32 |
|
33 |
if __name__ == "__main__":
|
34 |
-
demo.queue(api_open=False).launch(
|
|
|
31 |
)
|
32 |
|
33 |
if __name__ == "__main__":
|
34 |
+
demo.queue(api_open=False).launch()
|
papers.py
CHANGED
@@ -69,7 +69,7 @@ class Prettifier:
|
|
69 |
for _, row in df.iterrows():
|
70 |
new_row = dict(row) | {
|
71 |
"date": Prettifier.create_link(row.date, f"https://huggingface.co/papers?date={row.date}"),
|
72 |
-
"paper_page": "https://arxiv.org/abs/"+row.arxiv_id,
|
73 |
"github": self.get_github_link(row.github),
|
74 |
}
|
75 |
new_rows.append(new_row)
|
@@ -86,9 +86,9 @@ class PaperList:
|
|
86 |
]
|
87 |
|
88 |
def __init__(self, df: pd.DataFrame):
|
89 |
-
self.df_raw =
|
90 |
self._prettifier = Prettifier()
|
91 |
-
self.df_prettified = self._prettifier(df).loc[:, self.
|
92 |
|
93 |
@property
|
94 |
def column_names(self):
|
|
|
69 |
for _, row in df.iterrows():
|
70 |
new_row = dict(row) | {
|
71 |
"date": Prettifier.create_link(row.date, f"https://huggingface.co/papers?date={row.date}"),
|
72 |
+
"paper_page": f'<a href="%s" target="_blank">%s</a>' % ("https://arxiv.org/abs/"+row.arxiv_id,row.arxiv_id),
|
73 |
"github": self.get_github_link(row.github),
|
74 |
}
|
75 |
new_rows.append(new_row)
|
|
|
86 |
]
|
87 |
|
88 |
def __init__(self, df: pd.DataFrame):
|
89 |
+
self.df_raw = dfcolumn_names
|
90 |
self._prettifier = Prettifier()
|
91 |
+
self.df_prettified = self._prettifier(df).loc[:, self.]
|
92 |
|
93 |
@property
|
94 |
def column_names(self):
|