Spaces:
Running
Running
Update main.py
Browse files
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():
|