diff --git a/_README.ipynb b/_README.ipynb index 75867ff..2b839b6 100644 --- a/_README.ipynb +++ b/_README.ipynb @@ -121,7 +121,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -135,17 +135,17 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.2" - }, + "version": "3.7.5" + }, "pycharm": { "stem_cell": { "cell_type": "raw", - "source": [], "metadata": { "collapsed": false - } - } - } + }, + "source": [] + } + } }, "nbformat": 4, "nbformat_minor": 2 diff --git a/app_spec.yml b/app_spec.yml new file mode 100644 index 0000000..d7b094a --- /dev/null +++ b/app_spec.yml @@ -0,0 +1,18 @@ +input: + things: + name: things + value_type: str + description: 所求之事 + pray: + name: pray + value_type: str + description: 祈祷 +output: + ret1: + name: ret1 + value_type: str + description: 本卦 + ret2: + name: ret2 + value_type: str + description: 变卦 diff --git a/coding_here.ipynb b/coding_here.ipynb deleted file mode 100644 index 90d9432..0000000 --- a/coding_here.ipynb +++ /dev/null @@ -1,36 +0,0 @@ - - { - "cells": [ - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "print('Hello Mo!')" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.2" - } - }, - "nbformat": 4, - "nbformat_minor": 2 - } - \ No newline at end of file diff --git a/handler.py b/handler.py new file mode 100644 index 0000000..6ad6f19 --- /dev/null +++ b/handler.py @@ -0,0 +1,14 @@ +def handle(conf): + """ + 该方法是部署之后,其他人调用你的服务时候的处理方法。 + 请按规范填写参数结构,这样我们就能替你自动生成配置文件,方便其他人的调用。 + 范例: + params['key'] = value # value_type: str # description: some description + value_type 可以选择:img, video, audio, str, int, float, [int], [str], [float] + 参数请放到params字典中,我们会自动解析该变量。 + """ + + param1 = conf['param1'] # value_type: str # description: some description + # add your code + return {'ret1': 'cat'} + \ No newline at end of file diff --git a/main.ipynb b/main.ipynb new file mode 100644 index 0000000..8e06e5c --- /dev/null +++ b/main.ipynb @@ -0,0 +1,58 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "def handle(conf):\n", + " \"\"\"\n", + " 该方法是部署之后,其他人调用你的服务时候的处理方法。\n", + " 请按规范填写参数结构,这样我们就能替你自动生成配置文件,方便其他人的调用。\n", + " 范例:\n", + " params['key'] = value # value_type: str # description: some description\n", + " value_type 可以选择:img, video, audio, str, int, float, [int], [str], [float]\n", + " 参数请放到params字典中,我们会自动解析该变量。\n", + " \"\"\"\n", + "\n", + " things = conf['things'] # value_type: str # description: some description\n", + " pray = conf['pray']\n", + " \n", + " # add your code\n", + " return {'ret1': 'cat'}\n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "inputHidden": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.7.5" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/main.py b/main.py new file mode 100644 index 0000000..30633df --- /dev/null +++ b/main.py @@ -0,0 +1,22 @@ +############################################################################### +# 重要: 请务必把任务(jobs)中需要保存的文件存放在 results 文件夹内 +# Important : Please make sure your files are saved to the 'results' folder +# in your jobs +############################################################################### +print('Hello Mo!') +def handle(conf): + """ + 该方法是部署之后,其他人调用你的服务时候的处理方法。 + 请按规范填写参数结构,这样我们就能替你自动生成配置文件,方便其他人的调用。 + 范例: + params['key'] = value # value_type: str # description: some description + value_type 可以选择:img, video, audio, str, int, float, [int], [str], [float] + 参数请放到params字典中,我们会自动解析该变量。 + """ + + things = conf['things'] # value_type: str # description: some description + pray = conf['pray'] + + # add your code + return {'ret1': 'cat'} + \ No newline at end of file diff --git a/project_requirements.txt b/project_requirements.txt new file mode 100644 index 0000000..0a645d9 --- /dev/null +++ b/project_requirements.txt @@ -0,0 +1,140 @@ +murmurhash==1.0.6 +jmespath==0.10.0 +configparser==5.2.0 +imbalanced-learn==0.6.2 +Augmentor==0.2.8 +scikit-image==0.15.0 +tensorboard-data-server==0.6.1 +requests-oauthlib==1.3.1 +argon2-cffi-bindings==21.2.0 +thinc==7.4.1 +charset-normalizer==2.0.12 +nltk==3.5 +transformers==4.1.1 +astunparse==1.6.3 +PyWavelets==1.2.0 +semantic-version==2.8.5 +sentencepiece==0.1.91 +PyAudio==0.2.11 +greenlet==1.1.2 +ruamel.yaml.clib==0.2.6 +pyasn1==0.4.8 +attrs==19.3.0 +retrying==1.3.3 +torchtext==0.6.0 +func-timeout==4.3.5 +gym==0.15.7 +importlib-metadata==4.11.1 +pyasn1-modules==0.2.8 +cmake==3.21.1 +word2vec==0.11.1 +packaging==21.3 +preshed==3.0.6 +regex==2022.1.18 +tensorflow-privacy==0.5.2 +rsa==4.8 +easydict==1.9 +spacy==2.3.2 +tensorboardX==2.0 +defusedxml==0.7.1 +s3transfer==0.3.3 +networkx==2.6.3 +catalogue==1.0.0 +openpyxl==2.6.4 +dm-tree==0.1.6 +imageio==2.8.0 +metakernel==0.28.2 +opt-einsum==3.3.0 +cachetools==3.1.1 +smart-open==5.2.1 +multipledispatch==0.6.0 +argon2-cffi==21.3.0 +tinycss2==1.1.1 +graphviz==0.14 +minio==5.0.10 +boto3==1.16.25 +unification==0.2.2 +oauthlib==3.2.0 +google-auth==2.6.0 +gensim==3.8.3 +tensorboard-plugin-wit==1.8.1 +pytorch-pretrained-bert==0.6.2 +plotly==4.8.1 +joblib==1.1.0 +pydot==1.4.1 +sacremoses==0.0.47 +calysto==1.0.6 +mpmath==1.2.1 +toolz==0.11.2 +en-core-web-sm==https://files.momodel.cn/en_core_web_sm-2.3.0.tar.gz +rouge==1.0.0 +plac==1.1.3 +importlib-resources==5.4.0 +et-xmlfile==1.1.0 +typing-extensions==4.1.1 +certipy==0.1.3 +platformdirs==2.5.1 +debugpy==1.5.1 +kanren==0.2.3 +cryptography==36.0.1 +python-json-logger==2.0.2 +ruamel.yaml==0.17.21 +pyglet==1.5.0 +cymem==2.0.6 +Shapely==1.7.0 +click==8.0.4 +jdcal==1.4.1 +jupyter-telemetry==0.1.0 +tensorflow-federated==0.17.0 +tensorflow-estimator==2.3.0 +cloudpickle==1.2.2 +jupyterlab-server==0.2.0 +nest-asyncio==1.5.4 +mindspore==https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.0.0/MindSpore/cpu/ubuntu_x86/mindspore-1.0.0-cp37-cp37m-linux_x86_64.whl +google-pasta==0.2.0 +async-generator==1.10 +yellowbrick==1.1 +tf-slim==1.1.0 +xlrd==1.2.0 +numpyencoder==0.3.0 +copulas==0.3.3 +torch==1.4.0+cpu +typeguard==2.13.3 +pyOpenSSL==22.0.0 +matplotlib-inline==0.1.3 +tqdm==4.46.1 +torchvision==0.5.0+cpu +wrapt==1.13.3 +google-auth-oauthlib==0.4.6 +pycparser==2.21 +filelock==3.6.0 +botocore==1.19.25 +XlsxWriter==1.4.3 +dlib==19.22.0 +portpicker==1.3.9 +pytorch-transformers==1.2.0 +srsly==1.0.5 +distlib==0.3.4 +Cython==0.29.20 +install==1.3.5 +cssselect2==0.4.1 +CairoSVG==2.5.2 +pygame==2.0.1 +ipdb==0.13.2 +zipp==3.7.0 +tensorflow-model-optimization==0.4.1 +wasabi==0.9.0 +svgwrite==1.4.1 +baytune==0.3.12 +jieba==0.42.1 +minepy==1.2.4 +cffi==1.15.0 +blis==0.4.1 +paddlepaddle==2.0.1 +cairocffi==1.3.0 +tensorflow-addons==0.11.2 +sympy==1.6.2 +pyrsistent==0.18.1 +imgaug==0.4.0 +asttokens==2.0.5 +tokenizers==0.9.4