Update README.md
Browse files
README.md
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- image-to-image
|
| 4 |
+
- super-resolution
|
| 5 |
+
library_name: generic
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
## DAT-x2 for 🤗Inference endpoint deployment.
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
### Expected payload:
|
| 12 |
+
Curl:
|
| 13 |
+
```json
|
| 14 |
+
curl URL \
|
| 15 |
+
-X POST \
|
| 16 |
+
--data-binary @car.png \
|
| 17 |
+
-H "Content-Type: image/png"
|
| 18 |
+
```
|
| 19 |
+
Python:
|
| 20 |
+
```python
|
| 21 |
+
requests.post(ENDPOINT_URL, headers={"Content-Type": "image/png"}, data=open("car.png", 'rb').read()).json()
|
| 22 |
+
```
|