mbosse99 commited on
Commit
266290c
·
1 Parent(s): 412eb21
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -59,7 +59,13 @@ def main():
59
  }
60
  json_data = json.dumps(data, ensure_ascii=False)
61
 
62
- pdf_name = uploaded_file.name.split(".")[0]
 
 
 
 
 
 
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