datien228 commited on
Commit
bb9a0df
1 Parent(s): 0ce49a8
Files changed (1) hide show
  1. app.py +1 -1
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, resources={r"/*": {"origins": "http://0.0.0.0:7860"}}, 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')
 
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')