Spaces:
Running
Running
Sean Hamill
commited on
Commit
·
8a61945
1
Parent(s):
3a48be9
fix:
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def pdf_to_text(file_obj, progress=gr.Progress()):
|
|
57 |
progress(0.9, desc="Azure OpenAI Magic...")
|
58 |
#save the result.content in a text file
|
59 |
# generate random string
|
60 |
-
import random
|
61 |
with open("data/" + ''.join(random.choices(string.ascii_uppercase + string.digits, k = 10)) + ".txt", "w") as f:
|
62 |
f.write(str(result.content))
|
63 |
f.close()
|
|
|
57 |
progress(0.9, desc="Azure OpenAI Magic...")
|
58 |
#save the result.content in a text file
|
59 |
# generate random string
|
60 |
+
import random, string
|
61 |
with open("data/" + ''.join(random.choices(string.ascii_uppercase + string.digits, k = 10)) + ".txt", "w") as f:
|
62 |
f.write(str(result.content))
|
63 |
f.close()
|