MCPcopy Index your code
hub / github.com/pythonstock/stock / get

Method get

backend/web/minstServingHandler.py:41–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39# 获得股票数据内容。
40class GetPredictionDataHandler(webBase.BaseHandler):
41 def get(self):
42 # 获得分页参数。
43 img_url = self.get_argument("img_url", default=0, strip=False)
44 print(img_url)
45 img_obj = Image.open("/data/stock/web" + img_url)
46 print("img_obj", img_obj)
47 server = "0.0.0.0:8500"
48 prediction = do_inference(server, img_obj)
49 print('######### prediction : ', prediction)
50 self.write(json.dumps(prediction))
51
52
53# 获得股票数据内容。

Callers

nothing calls this directly

Calls 2

do_inferenceFunction · 0.85
openMethod · 0.80

Tested by

no test coverage detected