Neurolingua
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,6 @@ import shutil
|
|
8 |
from ai71 import AI71
|
9 |
import re
|
10 |
from flask import Flask, render_template, request, jsonify,session,current_app,send_from_directory
|
11 |
-
from pathlib import Path
|
12 |
|
13 |
AI71_API_KEY = "api71-api-df260d58-62e0-46c9-b549-62daa9c409be"
|
14 |
UPLOAD_FOLDER = 'uploads'
|
@@ -547,11 +546,5 @@ def generate_report():
|
|
547 |
|
548 |
|
549 |
if __name__ == '__main__':
|
550 |
-
directory = Path('uploads')
|
551 |
-
if os.path.exists('uploads'):
|
552 |
-
shutil.rmtree('uploads')
|
553 |
-
directory.mkdir(parents=True, exist_ok=True)
|
554 |
-
else:
|
555 |
-
directory.mkdir(parents=True, exist_ok=True)
|
556 |
app.run( port=5000, debug=True)
|
557 |
|
|
|
8 |
from ai71 import AI71
|
9 |
import re
|
10 |
from flask import Flask, render_template, request, jsonify,session,current_app,send_from_directory
|
|
|
11 |
|
12 |
AI71_API_KEY = "api71-api-df260d58-62e0-46c9-b549-62daa9c409be"
|
13 |
UPLOAD_FOLDER = 'uploads'
|
|
|
546 |
|
547 |
|
548 |
if __name__ == '__main__':
|
|
|
|
|
|
|
|
|
|
|
|
|
549 |
app.run( port=5000, debug=True)
|
550 |
|