Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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}
|