728x90 반응형 api 호출1 [AndroidStudio] 외부 API호출 (chatbot) Chatbot API 코드 from utils import Api_key from data import get_data from learning import learn_data from flask import Flask, request, jsonify, render_template import sys import openai import json application = Flask(__name__) # key openai.api_key = Api_key.openAI_key # 챗봇 API 매핑 (POST) @application.route("/", methods=['POST']) def chatbot(): try: request_data = request.get_json() user_input = req.. 2023. 8. 20. 이전 1 다음 728x90 반응형