Spaces:
Running
Running
With UUID
Browse files
app.py
CHANGED
|
@@ -59,7 +59,13 @@ def main():
|
|
| 59 |
}
|
| 60 |
json_data = json.dumps(data, ensure_ascii=False)
|
| 61 |
|
| 62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
pdf_data = uploaded_file.read()
|
| 65 |
|
|
|
|
| 59 |
}
|
| 60 |
json_data = json.dumps(data, ensure_ascii=False)
|
| 61 |
|
| 62 |
+
# Eine zufällige UUID generieren
|
| 63 |
+
random_uuid = uuid.uuid4()
|
| 64 |
+
|
| 65 |
+
# Die UUID als String darstellen
|
| 66 |
+
uuid_string = str(random_uuid)
|
| 67 |
+
|
| 68 |
+
pdf_name = uuid_string
|
| 69 |
|
| 70 |
pdf_data = uploaded_file.read()
|
| 71 |
|