Skip to content

Commit

Permalink
feat: add flask cors configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
msadeqsirjani committed Sep 12, 2023
1 parent 181134f commit 0c00705
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
from config import MEDIA_DIR, ALLOWED_LANGUAGES
from utilities.file_extensions import allowed_file, get_file_extension
from flask import Flask, send_file, jsonify, request, url_for
from flask_cors import CORS
from werkzeug.utils import secure_filename
from voice_engine import speech_to_text, text_to_speech
from brain_engine import gpt_engine

app = Flask(__name__)

CORS(app=app)

@app.route("/download/<file_name>")
def download(file_name: str):
Expand Down

0 comments on commit 0c00705

Please sign in to comment.