hysts HF Staff sergiopaniego HF Staff commited on
Commit
b3707ca
·
verified ·
1 Parent(s): 8a9d0f0

Update app.py (#1)

Browse files

- Update app.py (fbe0e0af2ba875149d4a8ef0926211481ee2a2a7)


Co-authored-by: Sergio Paniego <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ df_main = df_orig.select(
33
  # TODO: Fix this once https://github.com/gradio-app/gradio/issues/10916 is fixed # noqa: FIX002, TD002
34
  # format numbers as strings
35
  df_main = df_main.with_columns(
36
- [pl.col(col).cast(pl.Utf8).fill_null("").alias(col) for col in ["upvotes", "num_comments"]]
37
  )
38
 
39
  df_main = df_main.rename(
 
33
  # TODO: Fix this once https://github.com/gradio-app/gradio/issues/10916 is fixed # noqa: FIX002, TD002
34
  # format numbers as strings
35
  df_main = df_main.with_columns(
36
+ [pl.col(col).fill_null(0).cast(pl.Int64).alias(col) for col in ["upvotes", "num_comments"]]
37
  )
38
 
39
  df_main = df_main.rename(