Rupnil commited on
Commit
fa7383f
1 Parent(s): 6dee3ba

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -0
main.py CHANGED
@@ -2,8 +2,11 @@ from flask import Flask
2
  from gradio_client import Client
3
  import time
4
  from multiprocessing import Process
 
5
 
6
  app = Flask(__name__)
 
 
7
 
8
  @app.route('/')
9
  def hello():
 
2
  from gradio_client import Client
3
  import time
4
  from multiprocessing import Process
5
+ from flask_cors import CORS, cross_origin
6
 
7
  app = Flask(__name__)
8
+ cors = CORS(app)
9
+ app.config['CORS_HEADERS'] = 'Content-Type'
10
 
11
  @app.route('/')
12
  def hello():