ysharma HF Staff commited on
Commit
e17e9e0
·
verified ·
1 Parent(s): 6d6ec66

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -40,8 +40,8 @@ Drop in a screenshot of a chat, email, or document or any image for that matter.
40
  ## API
41
 
42
  ```python
43
- from gradio_client import Client, file
44
  client = Client("YOUR_SPACE_ID")
45
- result = client.predict(file("screenshot.png"), api_name="/anonymize_screenshot")
46
  # -> {"width": ..., "height": ..., "boxes": [{"x","y","w","h","label","text"}, ...], ...}
47
  ```
 
40
  ## API
41
 
42
  ```python
43
+ from gradio_client import Client, handle_file
44
  client = Client("YOUR_SPACE_ID")
45
+ result = client.predict(handle_file("screenshot.png"), api_name="/anonymize_screenshot")
46
  # -> {"width": ..., "height": ..., "boxes": [{"x","y","w","h","label","text"}, ...], ...}
47
  ```