aka7774 commited on
Commit
5127927
1 Parent(s): 1b165d8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -34,10 +34,10 @@ async def api_set_config(args: dict):
34
  @app.post("/infer")
35
  async def api_infer(args: dict):
36
  args['fastapi'] = True
37
- content = fn.infer(args['input'], [], args['instruct'], args)
38
  return {'content': content}
39
 
40
  @app.post("/numel")
41
  async def api_numel(args: dict):
42
- content = fn.numel(args['input'], [], args['instruct'], args)
43
  return {'numel': content}
 
34
  @app.post("/infer")
35
  async def api_infer(args: dict):
36
  args['fastapi'] = True
37
+ content = fn.infer(args['input'], [], args['instruct'], None, args)
38
  return {'content': content}
39
 
40
  @app.post("/numel")
41
  async def api_numel(args: dict):
42
+ content = fn.numel(args['input'], [], args['instruct'], None, args)
43
  return {'numel': content}