Spaces:
Running on Zero
Running on Zero
Update README.md
Browse files
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,
|
| 44 |
client = Client("YOUR_SPACE_ID")
|
| 45 |
-
result = client.predict(
|
| 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 |
```
|