Spaces:
Sleeping
Sleeping
add data
Browse files- main.py +14 -17
- requirements.txt +4 -4
main.py
CHANGED
@@ -57,9 +57,6 @@ css = """
|
|
57 |
#dataset_df th:nth-child(3), #dataset_df td:nth-child(3) {
|
58 |
max-width: 50px !important; /* 第三列 */
|
59 |
}
|
60 |
-
"""
|
61 |
-
|
62 |
-
temp = """
|
63 |
|
64 |
#view_chat_df th:nth-child(1), #view_chat_df td:nth-child(1) {
|
65 |
max-width: 50px !important; /* 第一列 */
|
@@ -295,20 +292,20 @@ def main():
|
|
295 |
)
|
296 |
_ = get_fs_tab()
|
297 |
_ = get_shell_tab()
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
|
313 |
# http://127.0.0.1:7861/
|
314 |
# http://10.75.27.247:7861/
|
|
|
57 |
#dataset_df th:nth-child(3), #dataset_df td:nth-child(3) {
|
58 |
max-width: 50px !important; /* 第三列 */
|
59 |
}
|
|
|
|
|
|
|
60 |
|
61 |
#view_chat_df th:nth-child(1), #view_chat_df td:nth-child(1) {
|
62 |
max-width: 50px !important; /* 第一列 */
|
|
|
292 |
)
|
293 |
_ = get_fs_tab()
|
294 |
_ = get_shell_tab()
|
295 |
+
with gr.TabItem("view_chat"):
|
296 |
+
view_chat_filename = gr.Textbox(label="filename")
|
297 |
+
with gr.Row():
|
298 |
+
view_chat_button = gr.Button(value="View", variant="primary", visible=True)
|
299 |
+
view_chat_df = gr.DataFrame(
|
300 |
+
value=None, label="dataset", interactive=True,
|
301 |
+
show_search="search",
|
302 |
+
elem_id="view_chat_df"
|
303 |
+
)
|
304 |
+
view_chat_button.click(
|
305 |
+
fn=when_click_view_chat_button,
|
306 |
+
inputs=[view_chat_filename],
|
307 |
+
outputs=[view_chat_df],
|
308 |
+
)
|
309 |
|
310 |
# http://127.0.0.1:7861/
|
311 |
# http://10.75.27.247:7861/
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
gradio
|
2 |
-
python-dotenv
|
3 |
-
pandas
|
4 |
-
openpyxl
|
|
|
1 |
+
gradio==5.38.2
|
2 |
+
python-dotenv==1.1.1
|
3 |
+
pandas==2.3.1
|
4 |
+
openpyxl==3.1.5
|