Spaces:
Running
Running
Commit
·
694a772
1
Parent(s):
69a2630
Update main.py
Browse files
main.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
#!/usr/bin/python3
|
2 |
# -*- coding: utf-8 -*-
|
3 |
"""
|
4 |
-
|
5 |
"""
|
6 |
import argparse
|
7 |
import httpx
|
@@ -457,7 +457,7 @@ def main():
|
|
457 |
model = gr.Dropdown(["gpt-4-1106-preview"], value="gpt-4-1106-preview", label="model")
|
458 |
|
459 |
# functions
|
460 |
-
tools = gr.TextArea(label="functions")
|
461 |
|
462 |
# upload files
|
463 |
retrieval_files = gr.Files(label="retrieval_files")
|
@@ -470,12 +470,12 @@ def main():
|
|
470 |
list_assistant_button = gr.Button("list assistant")
|
471 |
assistant_list = gr.TextArea(label="assistant_list")
|
472 |
|
473 |
-
delete_assistant_id = gr.Textbox(max_lines=1, label="delete_assistant_id")
|
474 |
-
delete_assistant_button = gr.Button("delete assistant")
|
475 |
|
476 |
-
delete_all_assistant_button = gr.Button("delete all assistant")
|
477 |
|
478 |
-
with gr.TabItem("files"):
|
479 |
list_file_button = gr.Button("list file")
|
480 |
file_list = gr.TextArea(label="file_list")
|
481 |
|
@@ -485,7 +485,7 @@ def main():
|
|
485 |
delete_file_id = gr.Textbox(max_lines=1, label="delete_file_id")
|
486 |
delete_file_button = gr.Button("delete file")
|
487 |
|
488 |
-
with gr.TabItem("function script"):
|
489 |
list_function_python_script_button = gr.Button("list python script")
|
490 |
list_function_python_script_list = gr.TextArea(label="python_script_list")
|
491 |
|
|
|
1 |
#!/usr/bin/python3
|
2 |
# -*- coding: utf-8 -*-
|
3 |
"""
|
4 |
+
|
5 |
"""
|
6 |
import argparse
|
7 |
import httpx
|
|
|
457 |
model = gr.Dropdown(["gpt-4-1106-preview"], value="gpt-4-1106-preview", label="model")
|
458 |
|
459 |
# functions
|
460 |
+
tools = gr.TextArea(label="functions",visible=False)
|
461 |
|
462 |
# upload files
|
463 |
retrieval_files = gr.Files(label="retrieval_files")
|
|
|
470 |
list_assistant_button = gr.Button("list assistant")
|
471 |
assistant_list = gr.TextArea(label="assistant_list")
|
472 |
|
473 |
+
delete_assistant_id = gr.Textbox(max_lines=1, label="delete_assistant_id",visible=False)
|
474 |
+
delete_assistant_button = gr.Button("delete assistant",visible=False)
|
475 |
|
476 |
+
delete_all_assistant_button = gr.Button("delete all assistant",visible=False)
|
477 |
|
478 |
+
with gr.TabItem("files",visible=False):
|
479 |
list_file_button = gr.Button("list file")
|
480 |
file_list = gr.TextArea(label="file_list")
|
481 |
|
|
|
485 |
delete_file_id = gr.Textbox(max_lines=1, label="delete_file_id")
|
486 |
delete_file_button = gr.Button("delete file")
|
487 |
|
488 |
+
with gr.TabItem("function script",visible=False):
|
489 |
list_function_python_script_button = gr.Button("list python script")
|
490 |
list_function_python_script_list = gr.TextArea(label="python_script_list")
|
491 |
|