sourceoftruthdata commited on
Commit
88af3f0
1 Parent(s): f212252

Update README.md

Browse files

remove usage/deployment

Files changed (1) hide show
  1. README.md +0 -16
README.md CHANGED
@@ -15,19 +15,3 @@ Text encoder was not trained.
15
  This is the model that feeds the Google Colab Notebook.
16
  The model is a simplified version of the DreamBooth model.
17
 
18
- import requests
19
-
20
- API_URL = "https://api-inference.huggingface.co/models/sourceoftruthdata/sot_autotrain_dreambooth_v1"
21
- headers = {"Authorization": "Bearer hf_xxxx"}
22
-
23
- def query(payload):
24
- response = requests.post(API_URL, headers=headers, json=payload)
25
- return response.content
26
- image_bytes = query({
27
- "inputs": "Astronaut riding a horse",
28
- })
29
- # You can access the image with PIL.Image for example
30
- import io
31
- from PIL import Image
32
- image = Image.open(io.BytesIO(image_bytes))
33
-
 
15
  This is the model that feeds the Google Colab Notebook.
16
  The model is a simplified version of the DreamBooth model.
17