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()
|