Spaces:
Runtime error
Runtime error
First 400 rows in models, first 250 rows in datasets and spaces
Browse files
app.py
CHANGED
@@ -188,7 +188,7 @@ with gr.Blocks() as demo:
|
|
188 |
models_df = models_df_to_clickable(models_df, columns_to_convert, "models")
|
189 |
|
190 |
headers = ["π’ Serial Number", "π’ Organization Name", "π₯ Total Downloads", "π Total Likes", "π€ Number of Models", "π Best Model On Open LLM Leaderboard", "π₯ Best Rank On Open LLM Leaderboard", "π Average Downloads per Model", "π Average Likes per Model", "π Most Downloaded Model", "π Most Download Count", "β€οΈ Most Liked Model", "π Most Like Count"]
|
191 |
-
gr.Dataframe(models_df, headers=headers, interactive=True, datatype=["str", "markdown", "str", "str", "str", "markdown", "str", "str", "str", "markdown", "str", "markdown", "str"])
|
192 |
|
193 |
with gr.TabItem("π Dataset", id=2):
|
194 |
columns_to_convert = ["Organization Name", "Most Downloaded Dataset", "Most Liked Dataset"]
|
@@ -196,7 +196,7 @@ with gr.Blocks() as demo:
|
|
196 |
dataset_df = models_df_to_clickable(dataset_df, columns_to_convert, "datasets")
|
197 |
|
198 |
headers = ["π’ Serial Number", "π’ Organization Name", "π₯ Total Downloads", "π Total Likes", "π Number of Datasets", "π Average Downloads per Dataset", "π Average Likes per Dataset", "π Most Downloaded Dataset", "π Most Download Count", "β€οΈ Most Liked Dataset", "π Most Like Count"]
|
199 |
-
gr.Dataframe(dataset_df, headers=headers, interactive=False, datatype=["str", "markdown", "str", "str", "str", "str", "str", "markdown", "str", "markdown", "str"])
|
200 |
|
201 |
with gr.TabItem("π Spaces", id=3):
|
202 |
columns_to_convert = ["Organization Name", "Most Liked Space"]
|
@@ -205,6 +205,6 @@ with gr.Blocks() as demo:
|
|
205 |
spaces_df = models_df_to_clickable(spaces_df, columns_to_convert, "spaces")
|
206 |
|
207 |
headers = ["π’ Serial Number", "π’ Organization Name", "π Total Likes", "π Number of Spaces", "π Average Likes per Space", "β€οΈ Most Liked Space", "π Most Like Count"]
|
208 |
-
gr.Dataframe(spaces_df, headers=headers, interactive=False, datatype=["str", "markdown", "str", "str", "str", "markdown", "str"])
|
209 |
|
210 |
demo.launch()
|
|
|
188 |
models_df = models_df_to_clickable(models_df, columns_to_convert, "models")
|
189 |
|
190 |
headers = ["π’ Serial Number", "π’ Organization Name", "π₯ Total Downloads", "π Total Likes", "π€ Number of Models", "π Best Model On Open LLM Leaderboard", "π₯ Best Rank On Open LLM Leaderboard", "π Average Downloads per Model", "π Average Likes per Model", "π Most Downloaded Model", "π Most Download Count", "β€οΈ Most Liked Model", "π Most Like Count"]
|
191 |
+
gr.Dataframe(models_df.head(400), headers=headers, interactive=True, datatype=["str", "markdown", "str", "str", "str", "markdown", "str", "str", "str", "markdown", "str", "markdown", "str"])
|
192 |
|
193 |
with gr.TabItem("π Dataset", id=2):
|
194 |
columns_to_convert = ["Organization Name", "Most Downloaded Dataset", "Most Liked Dataset"]
|
|
|
196 |
dataset_df = models_df_to_clickable(dataset_df, columns_to_convert, "datasets")
|
197 |
|
198 |
headers = ["π’ Serial Number", "π’ Organization Name", "π₯ Total Downloads", "π Total Likes", "π Number of Datasets", "π Average Downloads per Dataset", "π Average Likes per Dataset", "π Most Downloaded Dataset", "π Most Download Count", "β€οΈ Most Liked Dataset", "π Most Like Count"]
|
199 |
+
gr.Dataframe(dataset_df.head(250), headers=headers, interactive=False, datatype=["str", "markdown", "str", "str", "str", "str", "str", "markdown", "str", "markdown", "str"])
|
200 |
|
201 |
with gr.TabItem("π Spaces", id=3):
|
202 |
columns_to_convert = ["Organization Name", "Most Liked Space"]
|
|
|
205 |
spaces_df = models_df_to_clickable(spaces_df, columns_to_convert, "spaces")
|
206 |
|
207 |
headers = ["π’ Serial Number", "π’ Organization Name", "π Total Likes", "π Number of Spaces", "π Average Likes per Space", "β€οΈ Most Liked Space", "π Most Like Count"]
|
208 |
+
gr.Dataframe(spaces_df.head(250), headers=headers, interactive=False, datatype=["str", "markdown", "str", "str", "str", "markdown", "str"])
|
209 |
|
210 |
demo.launch()
|