moved main.app to flask_utils.app
This commit is contained in:
parent
c60f57afd8
commit
3f64aa6659
@ -1,5 +1,4 @@
|
||||
import lingua_franca
|
||||
from flask import Flask
|
||||
|
||||
from jarvis.skills import intent_manager
|
||||
from jarvis.skills.entertainement.jokes import JokesSkill
|
||||
@ -7,8 +6,6 @@ from jarvis.skills.entertainement.spotify import SpotifySkill
|
||||
from jarvis.skills.research.wikipedia import WikipediaSkill
|
||||
from jarvis.utils import languages_utils, flask_utils
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
if __name__ == '__main__':
|
||||
# Load lingua franca in the memory
|
||||
# Supported : English French German Hungarian Italian Portuguese Swedish
|
||||
|
@ -2,12 +2,13 @@ import json
|
||||
|
||||
import flask
|
||||
import speech_recognition as sr
|
||||
from flask import Response, request, jsonify
|
||||
from flask import Response, request, jsonify, Flask
|
||||
|
||||
from jarvis.main import app
|
||||
from jarvis.skills import intent_manager
|
||||
from jarvis.utils import config_utils, languages_utils
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
@app.route("/process", methods=['POST'])
|
||||
def process_request():
|
||||
|
Reference in New Issue
Block a user