Spaces:
Runtime error
Runtime error
fix CORS
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from flask_cors import CORS, cross_origin
|
|
5 |
import __main__
|
6 |
|
7 |
app = Flask(__name__)
|
8 |
-
CORS(app,
|
9 |
app.config['CORS_ALLOW_HEADERS'] = 'Content-Type'
|
10 |
app.config['CORS_SUPPORTS_CREDENTIALS'] = 'True'
|
11 |
# shortTokenizer = BartTokenizer.from_pretrained('sshleifer/distilbart-xsum-12-6')
|
|
|
5 |
import __main__
|
6 |
|
7 |
app = Flask(__name__)
|
8 |
+
CORS(app, supports_credentials=True)
|
9 |
app.config['CORS_ALLOW_HEADERS'] = 'Content-Type'
|
10 |
app.config['CORS_SUPPORTS_CREDENTIALS'] = 'True'
|
11 |
# shortTokenizer = BartTokenizer.from_pretrained('sshleifer/distilbart-xsum-12-6')
|