Neurolingua
commited on
Commit
•
4a8d12c
1
Parent(s):
5b21759
Update app.py
Browse files
app.py
CHANGED
@@ -9,14 +9,13 @@ 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-
|
13 |
UPLOAD_FOLDER = 'uploads'
|
14 |
ALLOWED_EXTENSIONS = {'pdf', 'jpg', 'jpeg' , 'png'}
|
15 |
|
16 |
app = Flask(__name__)
|
17 |
app.secret_key = 'your_unique_secret_key' # Add this line
|
18 |
-
|
19 |
-
shutil.rmtree('uploads')
|
20 |
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
|
21 |
memory = ConversationBufferMemory()
|
22 |
database=joblib.load('database.pkl')
|
|
|
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-652e5c6c-8edf-41d0-9c34-28522b07bef9"
|
13 |
UPLOAD_FOLDER = 'uploads'
|
14 |
ALLOWED_EXTENSIONS = {'pdf', 'jpg', 'jpeg' , 'png'}
|
15 |
|
16 |
app = Flask(__name__)
|
17 |
app.secret_key = 'your_unique_secret_key' # Add this line
|
18 |
+
|
|
|
19 |
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
|
20 |
memory = ConversationBufferMemory()
|
21 |
database=joblib.load('database.pkl')
|