Spaces:
Runtime error
Runtime error
Commit
Β·
a0915df
1
Parent(s):
c1af0d8
add examples and description
Browse files
app.py
CHANGED
@@ -118,5 +118,20 @@ placeholder_url = "HF-IA-archiving/models-to-archive-65006a7fdadb8c628f33aac9"
|
|
118 |
slug_input = gr.Textbox(
|
119 |
placeholder=placeholder_url, interactive=True, label="Collection slug", max_lines=1
|
120 |
)
|
|
|
|
|
|
|
|
|
121 |
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
slug_input = gr.Textbox(
|
119 |
placeholder=placeholder_url, interactive=True, label="Collection slug", max_lines=1
|
120 |
)
|
121 |
+
description = (
|
122 |
+
"Enter a collection slug to get a list of papers associated with models and"
|
123 |
+
" datasets in the collection."
|
124 |
+
)
|
125 |
|
126 |
+
examples = [
|
127 |
+
placeholder_url,
|
128 |
+
"davanstrien/historic-language-modeling-64f99e243188ade79d7ad74b",
|
129 |
+
]
|
130 |
+
gr.Interface(
|
131 |
+
get_papers_for_collection,
|
132 |
+
slug_input,
|
133 |
+
"json",
|
134 |
+
description=description,
|
135 |
+
examples=examples,
|
136 |
+
cache_examples=True,
|
137 |
+
).launch()
|