tahercoolguy commited on
Commit
c876258
1 Parent(s): 3158510

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +10 -10
main.py CHANGED
@@ -475,15 +475,6 @@ def main():
475
 
476
  delete_all_assistant_button = gr.Button("delete all assistant",visible=False)
477
 
478
- # this is for files .
479
- list_file_button = gr.Button("list file",visible=False)
480
- file_list = gr.TextArea(label="file_list",visible=False)
481
-
482
- upload_files = gr.Files(label="upload_files",visible=False)
483
- upload_files_button = gr.Button("upload file",visible=False)
484
-
485
- delete_file_id = gr.Textbox(max_lines=1, label="delete_file_id",visible=False)
486
- delete_file_button = gr.Button("delete file",visible=False)
487
 
488
  # this is for function script.
489
  list_function_python_script_button = gr.Button("list python script",visible=False)
@@ -496,7 +487,16 @@ def main():
496
  delete_function_python_script_button = gr.Button("delete python script",visible=False)
497
  download_function_python_script_button = gr.Button("download python script",visible=False)
498
 
499
- # with gr.TabItem("files"):
 
 
 
 
 
 
 
 
 
500
 
501
 
502
  # with gr.TabItem("function script"):
 
475
 
476
  delete_all_assistant_button = gr.Button("delete all assistant",visible=False)
477
 
 
 
 
 
 
 
 
 
 
478
 
479
  # this is for function script.
480
  list_function_python_script_button = gr.Button("list python script",visible=False)
 
487
  delete_function_python_script_button = gr.Button("delete python script",visible=False)
488
  download_function_python_script_button = gr.Button("download python script",visible=False)
489
 
490
+ with gr.TabItem("files"):
491
+ # this is for files .
492
+ list_file_button = gr.Button("list file")
493
+ file_list = gr.TextArea(label="file_list")
494
+
495
+ upload_files = gr.Files(label="upload_files")
496
+ upload_files_button = gr.Button("upload file")
497
+
498
+ delete_file_id = gr.Textbox(max_lines=1, label="delete_file_id")
499
+ delete_file_button = gr.Button("delete file")
500
 
501
 
502
  # with gr.TabItem("function script"):