Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files
app.py
CHANGED
|
@@ -34,12 +34,6 @@ If you need further help, check out the [guide here](https://huggingface.co/docs
|
|
| 34 |
If you notice any missing or incorrect information in the table, feel free to submit a PR via the "Open PR" page, which you can find at the top right of this page.
|
| 35 |
"""
|
| 36 |
|
| 37 |
-
# TODO: remove this once https://github.com/gradio-app/gradio/issues/10916 https://github.com/gradio-app/gradio/issues/11001 https://github.com/gradio-app/gradio/issues/11002 are fixed # noqa: TD002, FIX002
|
| 38 |
-
NOTE = """\
|
| 39 |
-
Note: Sorting by upvotes or comments may not work correctly due to a known bug in Gradio.
|
| 40 |
-
"""
|
| 41 |
-
|
| 42 |
-
|
| 43 |
df_main = df_orig.select(
|
| 44 |
"title",
|
| 45 |
"authors_str",
|
|
@@ -58,6 +52,7 @@ df_main = df_orig.select(
|
|
| 58 |
"paper_id",
|
| 59 |
)
|
| 60 |
|
|
|
|
| 61 |
df_main = df_main.with_columns(
|
| 62 |
[
|
| 63 |
pl.when(pl.col(col) == "").then(None).otherwise(pl.col(col)).cast(pl.Int64).fill_null(0).alias(col)
|
|
@@ -192,7 +187,6 @@ with gr.Blocks(css_paths="style.css") as demo:
|
|
| 192 |
|
| 193 |
num_papers = gr.Textbox(label="Number of papers", value=update_num_papers(df_orig), interactive=False)
|
| 194 |
|
| 195 |
-
gr.Markdown(NOTE)
|
| 196 |
df = gr.Dataframe(
|
| 197 |
value=df_main,
|
| 198 |
datatype=list(COLUMN_INFO.values()),
|
|
|
|
| 34 |
If you notice any missing or incorrect information in the table, feel free to submit a PR via the "Open PR" page, which you can find at the top right of this page.
|
| 35 |
"""
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
df_main = df_orig.select(
|
| 38 |
"title",
|
| 39 |
"authors_str",
|
|
|
|
| 52 |
"paper_id",
|
| 53 |
)
|
| 54 |
|
| 55 |
+
# TODO: remove this once https://github.com/gradio-app/gradio/issues/10916 https://github.com/gradio-app/gradio/issues/11001 https://github.com/gradio-app/gradio/issues/11002 are fixed # noqa: TD002, FIX002
|
| 56 |
df_main = df_main.with_columns(
|
| 57 |
[
|
| 58 |
pl.when(pl.col(col) == "").then(None).otherwise(pl.col(col)).cast(pl.Int64).fill_null(0).alias(col)
|
|
|
|
| 187 |
|
| 188 |
num_papers = gr.Textbox(label="Number of papers", value=update_num_papers(df_orig), interactive=False)
|
| 189 |
|
|
|
|
| 190 |
df = gr.Dataframe(
|
| 191 |
value=df_main,
|
| 192 |
datatype=list(COLUMN_INFO.values()),
|