Skip to content

Commit

Permalink
fixing typo in demo server
Browse files Browse the repository at this point in the history
  • Loading branch information
chanind committed May 24, 2022
1 parent 201ed51 commit a15ef6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def detect_frames() -> dict[str, Any]:
"message": 'You must provide a "sentence" query param',
},
)
model_size = request.args.get("model", type="str")
model_size = request.args.get("model", type=str)
transformer = transformers.get(model_size, transformers["base"])
detect_frames_result = transformer.detect_frames(sentence)
return asdict(detect_frames_result)

0 comments on commit a15ef6d

Please sign in to comment.