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 = CORS(app, supports_credentials=True, resources={r"
|
9 |
# shortTokenizer = BartTokenizer.from_pretrained('sshleifer/distilbart-xsum-12-6')
|
10 |
# shortModel = BartForConditionalGeneration.from_pretrained('sshleifer/distilbart-xsum-12-6')
|
11 |
|
|
|
5 |
import __main__
|
6 |
|
7 |
app = Flask(__name__)
|
8 |
+
cors = CORS(app, supports_credentials=True, resources={r"/*": {"origins": "http://0.0.0.0"}})
|
9 |
# shortTokenizer = BartTokenizer.from_pretrained('sshleifer/distilbart-xsum-12-6')
|
10 |
# shortModel = BartForConditionalGeneration.from_pretrained('sshleifer/distilbart-xsum-12-6')
|
11 |
|