HoneyTian commited on
Commit
20b9748
·
1 Parent(s): ea948a7
Files changed (2) hide show
  1. main.py +14 -17
  2. 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
- # with gr.TabItem("view_chat"):
299
- # view_chat_filename = gr.Textbox(label="filename")
300
- # with gr.Row():
301
- # view_chat_button = gr.Button(value="View", variant="primary", visible=True)
302
- # view_chat_df = gr.DataFrame(
303
- # value=None, label="dataset", interactive=True,
304
- # show_search="search",
305
- # elem_id="view_chat_df"
306
- # )
307
- # view_chat_button.click(
308
- # fn=when_click_view_chat_button,
309
- # inputs=[view_chat_filename],
310
- # outputs=[view_chat_df],
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