We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55148d5 commit 2d77945Copy full SHA for 2d77945
main.py
@@ -86,6 +86,7 @@ def upload():
86
file.save(os.path.join('uploads', filename))
87
answers = nlp('uploads/' + filename, question)
88
if len(answers) == 0:
89
+ os.remove(os.path.join(os.getcwd(), 'uploads/' + filename))
90
return 'Sorry, I can\'t find the answer for that question. Please try again with a different document.'
91
answer = answers[0]
92
os.remove(os.path.join(os.getcwd(), 'uploads/' + filename))
0 commit comments