Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ CLIP_LENGTH = 80
|
|
| 23 |
|
| 24 |
df = pd.read_csv("models-table-free.csv", dtype=str, keep_default_na=False)
|
| 25 |
|
| 26 |
-
for col in ["Notes", "Training dataset", "Tags"]:
|
| 27 |
if col in df.columns:
|
| 28 |
df[col] = df[col].apply(lambda x: x[:CLIP_LENGTH] + "..." if len(x) > CLIP_LENGTH else x)
|
| 29 |
|
|
@@ -35,7 +35,7 @@ with gr.Blocks(title="Models Table Pro — Free Preview", css=CSS) as demo:
|
|
| 35 |
datatype=["str"] * len(df.columns),
|
| 36 |
interactive=False,
|
| 37 |
wrap=False,
|
| 38 |
-
max_height=
|
| 39 |
)
|
| 40 |
|
| 41 |
demo.launch()
|
|
|
|
| 23 |
|
| 24 |
df = pd.read_csv("models-table-free.csv", dtype=str, keep_default_na=False)
|
| 25 |
|
| 26 |
+
for col in ["Notes", "Training dataset", "Tags", "Lab"]:
|
| 27 |
if col in df.columns:
|
| 28 |
df[col] = df[col].apply(lambda x: x[:CLIP_LENGTH] + "..." if len(x) > CLIP_LENGTH else x)
|
| 29 |
|
|
|
|
| 35 |
datatype=["str"] * len(df.columns),
|
| 36 |
interactive=False,
|
| 37 |
wrap=False,
|
| 38 |
+
max_height=2000,
|
| 39 |
)
|
| 40 |
|
| 41 |
demo.launch()
|