Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -3624,29 +3624,29 @@ def launch_ui(demo_mode=False):
|
|
| 3624 |
description="Import data into the database from a CSV file."
|
| 3625 |
)
|
| 3626 |
|
| 3627 |
-
# Top-Level Gradio Tab #6 - Export/Import - Same deal as above, not sure why this is auto-tabbed
|
| 3628 |
-
import_export_tab = gr.TabbedInterface(
|
| 3629 |
-
|
| 3630 |
-
|
| 3631 |
-
|
| 3632 |
-
|
| 3633 |
-
|
| 3634 |
-
|
| 3635 |
-
|
| 3636 |
-
|
| 3637 |
-
|
| 3638 |
-
|
| 3639 |
-
|
| 3640 |
-
|
| 3641 |
-
|
| 3642 |
-
|
| 3643 |
-
|
| 3644 |
-
|
| 3645 |
-
|
| 3646 |
-
|
| 3647 |
-
|
| 3648 |
-
|
| 3649 |
-
)
|
| 3650 |
|
| 3651 |
# Second sub-tab for Keywords tab
|
| 3652 |
keyword_add_interface = gr.Interface(
|
|
|
|
| 3624 |
description="Import data into the database from a CSV file."
|
| 3625 |
)
|
| 3626 |
|
| 3627 |
+
# # Top-Level Gradio Tab #6 - Export/Import - Same deal as above, not sure why this is auto-tabbed
|
| 3628 |
+
# import_export_tab = gr.TabbedInterface(
|
| 3629 |
+
# [gr.TabbedInterface(
|
| 3630 |
+
# [gr.Interface(
|
| 3631 |
+
# fn=export_to_csv,
|
| 3632 |
+
# inputs=[
|
| 3633 |
+
# gr.Textbox(label="Search Query", placeholder="Enter your search query here..."),
|
| 3634 |
+
# gr.CheckboxGroup(label="Search Fields", choices=["Title", "Content"], value=["Title"]),
|
| 3635 |
+
# gr.Textbox(label="Keyword (Match ALL, can use multiple keywords, separated by ',' (comma) )",
|
| 3636 |
+
# placeholder="Enter keywords here..."),
|
| 3637 |
+
# gr.Number(label="Page", value=1, precision=0),
|
| 3638 |
+
# gr.Number(label="Results per File", value=1000, precision=0)
|
| 3639 |
+
# ],
|
| 3640 |
+
# outputs="text",
|
| 3641 |
+
# title="Export Search Results to CSV",
|
| 3642 |
+
# description="Export the search results to a CSV file."
|
| 3643 |
+
# ),
|
| 3644 |
+
# export_keywords_interface],
|
| 3645 |
+
# ["Export Search Results", "Export Keywords"]
|
| 3646 |
+
# ),
|
| 3647 |
+
# import_interface],
|
| 3648 |
+
# ["Export", "Import"]
|
| 3649 |
+
# )
|
| 3650 |
|
| 3651 |
# Second sub-tab for Keywords tab
|
| 3652 |
keyword_add_interface = gr.Interface(
|