# 重要: 请务必把任务(jobs)中需要保存的文件存放在 results 文件夹内
# Important : Please make sure your files are saved to the 'results' folder in your jobs
# You can use other public modules via our Client object with module's identifier
# and parameters.
# For more detailes, please see our online document - https://momodel.github.io/docs/#
import os
import sys
# Import necessary packages
from modules import json_parser
from modules import Client
# Initialise Client object
client = Client(api_key='996c5ec910a35bc0813ba5f12f4ba667ba10af41ecd4c9dd0ff9aa5cbfc0439a',
project_id='5cd04ee51afd94639a492b8e', user_ID='5ca1c6991afd941dd93a4052',
project_type='app', source_file_path='chineseocr/Untitled.py',
silent=True)
# Make run/train/predict command alias for further use
run = client.run
train = client.train
predict = client.predict
# Make controller alias for further use
controller = client.controller
def handle(conf):
# paste your code here
pass
# return your result consistent with .yml you defined
# .e.g return {'iris_class': 1, 'possibility': '88%'}
if __name__ == '__main__':
conf = {}
handle(conf)