Coder Social home page Coder Social logo

ekes_app's Introduction

対話型 ES 作成アプリ

フロント側は Apple のフレームワークのみ使用. バックエンドは Python. Siri の音声認識エンジンを使い、AI と会話をすることで ES を完成させていく.

セットアップ

git clone https://github.com/naru-hiyoko/EKES_APP.git
cd EKES_APP/EKMensetsu

ここから リソースをダウンロードし, 上のディレクトリにコピーする.

デバッグモード でのビルド

XCode 上から ビルドの前に AI.swift の AI, AICloud の URL 部分を環境に合わせて修正する.
また、ビルドの際には Product -> Scheme -> Edit Scheme -> Build Configuration を Debug にしておく.

class AI : NSObject
{
    
    #if DEBUG
    static let register_url: URL = URL.init(string: "http://192.168.1.4/register.py")!
    #else
    static let register_url: URL = URL.init(string: "http://.ddns.net:21000/register.py")!
    #endif
    
}

class AICloud
{
    #if DEBUG
//    let url = URL.init(string: "http://192.168.1.3:8000/cgi-bin/server.py")
    let url = URL.init(string: "http://192.168.1.4:21000/server.py")
    #else
    let url = URL.init(string: "http://.ddns.net:21000/server.py")
    #endif
    private var session : URLSession!
   

ローカルサーバーの準備

バックエンドは、シナリオの進行を制御するサービスとデータベース関連のサービスをそれぞれサーバで立ち上げる。
ローカル環境でのテストは CGI 用のテストコード が python/ に入っている. debug.html は 前者の CGI テスト用.
python/ 以下で

python3 -m http.server --cgi

アプリケーションからは server.py ないし server-interactive.py にアクセスする.
本番用のサーバー側プログラムは未公開.
Note: mirror.py の形で受け取ったら、その後の処理お願いします。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.