Spaces:
Anush008
/
Runtime error

Felix Marty commited on
Commit
5fc4052
1 Parent(s): 7804c1f
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def onnx_export(token: str, model_id: str, task: str) -> str:
32
  api = HfApi(token=token)
33
 
34
  error, commit_info = convert(api=api, model_id=model_id, task=task)
35
- if error != "":
36
  return error
37
 
38
  print("[commit_info]", commit_info)
 
32
  api = HfApi(token=token)
33
 
34
  error, commit_info = convert(api=api, model_id=model_id, task=task)
35
+ if error != "0":
36
  return error
37
 
38
  print("[commit_info]", commit_info)