shihxuancheng
5 years ago
10 changed files with 147 additions and 95 deletions
Split View
Diff Options
-
11back_end/bot_app/__init__.py
-
2back_end/bot_app/fulfillment/buying_drink.py
-
7back_end/bot_app/fulfillment/controllers.py
-
16back_end/bot_app/fulfillment/system_pic.py
-
37back_end/bot_app/fulfillment/utility.py
-
151back_end/bot_app/fulfillment/whl_family.py
-
5back_end/config.py
-
12credential/qa_bot_auth.json
-
0front_end/detect_intent_texts.py
-
1resources/assets/qa_bot dialog flow.drawio
@ -1,19 +1,14 @@ |
|||
from flask import Flask |
|||
import bot_app.fulfillment.utility as util |
|||
from bot_app.fulfillment.controllers import fulfillment |
|||
import bot_app.fulfillment.controllers as controller |
|||
|
|||
app = Flask(__name__) |
|||
|
|||
app.config.from_object('config') |
|||
|
|||
app.register_blueprint(fulfillment) |
|||
controller.init_app(app) |
|||
|
|||
util.init_app(app) |
|||
|
|||
@app.route('/') |
|||
def index(): |
|||
return 'Service Working!!!' |
|||
|
|||
@app.route('/test') |
|||
def test(): |
|||
return util.simple_response('Hello World Test!!') |
|||
return 'Service Working!!!' |
@ -1,12 +0,0 @@ |
|||
{ |
|||
"type": "service_account", |
|||
"project_id": "test-bot-wsdwyh", |
|||
"private_key_id": "54df4317d1f679ce3c5a5c533c5ad64b20f5d238", |
|||
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCij2tnfO1/kbq2\naROOVYTT1rIKMuf6G4wcUnOYaS0gLvu1w6WqO0zVN+nafIFGlAkgD7kHwJD8yv8Z\nH1/+4n3TQg5pJCthSB4NLHYwbP3p3tlVyJgdZ+MG8Qx04qLeQzaenq9l4MgL26qs\nGROVeeVfNNxugW7q2UHwmRZ89QtVhZxoHvjcmFLZD85duhifE+6JDBUe+SHUBfyl\nLIiKOD0+8c99IY+VLB+OEzFotEO1DWU7KKRIwVhW0qHChgXRzOmo1X5V1fIqyLaC\nouZkIdLK93nYkIO4S+H2j9svrM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v53zqrMXQK\nipn0cgp975seXcckf3pAiXD0LX4j22x+pDOWk58BAoGAYcywt3jifvKdXbcRE+Wo\nJ/jAgWY2p722bESE2DD0hpsOEwdFPPwG8vr5reEb+PegxLsv7c4vXdemOmj52PEC\nxPDvQEmuKTnA/ORkJT3jEVKYx7Hu9KODlSDTjWM5G9HPevWuJKV6qrmXIbum6L3U\nq7w75gocGx4de/uY0w5Ysyw=\n-----END PRIVATE KEY-----\n", |
|||
"client_email": "dialogflow-joojtu@test-bot-wsdwyh.iam.gserviceaccount.com", |
|||
"client_id": "118072988943548920832", |
|||
"auth_uri": "https://accounts.google.com/o/oauth2/auth", |
|||
"token_uri": "https://oauth2.googleapis.com/token", |
|||
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", |
|||
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dialogflow-joojtu%40test-bot-wsdwyh.iam.gserviceaccount.com" |
|||
} |
1
resources/assets/qa_bot dialog flow.drawio
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save