Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,10 +58,11 @@ $body
|
|
58 |
"""
|
59 |
|
60 |
def make_filename(inp):
|
61 |
-
if len(inp)<=
|
62 |
first_name=inp
|
63 |
else:
|
64 |
-
first_name=inp[:
|
|
|
65 |
print(first_name)
|
66 |
last_name=random.randint(1,1111111111)
|
67 |
filename=first_name+str(last_name)
|
|
|
58 |
"""
|
59 |
|
60 |
def make_filename(inp):
|
61 |
+
if len(inp)<=30:
|
62 |
first_name=inp
|
63 |
else:
|
64 |
+
first_name=inp[:30]
|
65 |
+
first_name=first_name.replace(" ","_")
|
66 |
print(first_name)
|
67 |
last_name=random.randint(1,1111111111)
|
68 |
filename=first_name+str(last_name)
|