Spaces:
Running
Running
[update]add 三国演义.txt
Browse files
main.py
CHANGED
@@ -157,6 +157,8 @@ def click_list_file(openai_api_key: str):
|
|
157 |
|
158 |
def click_delete_file(openai_api_key: str,
|
159 |
file_id: str) -> str:
|
|
|
|
|
160 |
logger.info("click delete file, file_id: {}".format(file_id))
|
161 |
|
162 |
client = OpenAI(
|
|
|
157 |
|
158 |
def click_delete_file(openai_api_key: str,
|
159 |
file_id: str) -> str:
|
160 |
+
file_id = file_id.strip()
|
161 |
+
|
162 |
logger.info("click delete file, file_id: {}".format(file_id))
|
163 |
|
164 |
client = OpenAI(
|