Spaces:
Sleeping
Sleeping
Upload create_newfile.py
Browse files- create_newfile.py +2 -1
create_newfile.py
CHANGED
@@ -4,7 +4,8 @@ import random
|
|
4 |
def new_output_file(username):
|
5 |
# Generate a random 6-digit number for the filename
|
6 |
random_number = random.randint(100000, 999999)
|
7 |
-
filename = f'
|
|
|
8 |
|
9 |
# Create a new CSV file with 2 columns, ID and output.
|
10 |
with open(filename, 'w', newline='') as file:
|
|
|
4 |
def new_output_file(username):
|
5 |
# Generate a random 6-digit number for the filename
|
6 |
random_number = random.randint(100000, 999999)
|
7 |
+
filename = f'./{username}/output_{random_number}.csv'
|
8 |
+
# filename = f'/Users/yunshi/Downloads/360Data/Data Center/Working-On Task/演讲与培训/2023ChatGPT/Coding/gradio/中交建/产品演示DEMO/交付_文本清洗/{username}/output_{random_number}.csv'
|
9 |
|
10 |
# Create a new CSV file with 2 columns, ID and output.
|
11 |
with open(filename, 'w', newline='') as file:
|