Spaces:
Sleeping
Sleeping
Moved Search into the download model tab
Browse files- src/webui.py +25 -51
src/webui.py
CHANGED
|
@@ -193,31 +193,6 @@ if __name__ == '__main__':
|
|
| 193 |
gr.Label('AICoverGen WebUI created with ❤️', show_label=False)
|
| 194 |
gr.Markdown("Duplicate this space for use in private: [](https://huggingface.co/spaces/SpyCoder77/AICoverGen?duplicate=true)\n\n")
|
| 195 |
|
| 196 |
-
with gr.Tab("Search"):
|
| 197 |
-
gr.Markdown("# Model Search")
|
| 198 |
-
|
| 199 |
-
with gr.Column():
|
| 200 |
-
with gr.Row():
|
| 201 |
-
query_input = gr.Textbox(
|
| 202 |
-
label="Search Query",
|
| 203 |
-
placeholder="Enter model name or keyword...",
|
| 204 |
-
lines=1,
|
| 205 |
-
min_width=320
|
| 206 |
-
)
|
| 207 |
-
|
| 208 |
-
with gr.Row():
|
| 209 |
-
output_df = gr.Dataframe(
|
| 210 |
-
headers=["name", "author", "downloads", "downloadURL"],
|
| 211 |
-
datatype=["str", "str", "number", "str"],
|
| 212 |
-
row_count=5,
|
| 213 |
-
col_count=(4, "fixed"),
|
| 214 |
-
)
|
| 215 |
-
|
| 216 |
-
query_input.input(
|
| 217 |
-
fn=filter_records,
|
| 218 |
-
inputs=query_input,
|
| 219 |
-
outputs=output_df
|
| 220 |
-
)
|
| 221 |
|
| 222 |
|
| 223 |
with gr.Tab("Generate"):
|
|
@@ -318,32 +293,31 @@ if __name__ == '__main__':
|
|
| 318 |
cache_examples=False,
|
| 319 |
)
|
| 320 |
|
| 321 |
-
with gr.Tab(
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
gr.
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
download_pub_btn.click(download_online_model, inputs=[pub_zip_link, pub_model_name], outputs=pub_dl_output_message)
|
| 347 |
|
| 348 |
# Upload tab
|
| 349 |
with gr.Tab('Upload model'):
|
|
|
|
| 193 |
gr.Label('AICoverGen WebUI created with ❤️', show_label=False)
|
| 194 |
gr.Markdown("Duplicate this space for use in private: [](https://huggingface.co/spaces/SpyCoder77/AICoverGen?duplicate=true)\n\n")
|
| 195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
|
| 197 |
|
| 198 |
with gr.Tab("Generate"):
|
|
|
|
| 293 |
cache_examples=False,
|
| 294 |
)
|
| 295 |
|
| 296 |
+
with gr.Tab("Search"):
|
| 297 |
+
gr.Markdown("# Model Search")
|
| 298 |
+
|
| 299 |
+
with gr.Column():
|
| 300 |
+
with gr.Row():
|
| 301 |
+
query_input = gr.Textbox(
|
| 302 |
+
label="Search Query",
|
| 303 |
+
placeholder="Enter model name or keyword...",
|
| 304 |
+
lines=1,
|
| 305 |
+
min_width=320
|
| 306 |
+
)
|
| 307 |
+
|
| 308 |
+
with gr.Row():
|
| 309 |
+
output_df = gr.Dataframe(
|
| 310 |
+
headers=["name", "author", "downloads", "downloadURL"],
|
| 311 |
+
datatype=["str", "str", "number", "str"],
|
| 312 |
+
row_count=5,
|
| 313 |
+
col_count=(4, "fixed"),
|
| 314 |
+
)
|
| 315 |
+
|
| 316 |
+
query_input.input(
|
| 317 |
+
fn=filter_records,
|
| 318 |
+
inputs=query_input,
|
| 319 |
+
outputs=output_df
|
| 320 |
+
)
|
|
|
|
| 321 |
|
| 322 |
# Upload tab
|
| 323 |
with gr.Tab('Upload model'):
|