ehristoforu commited on
Commit
5ddd82a
·
1 Parent(s): ebbe079

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -1
README.md CHANGED
@@ -3,6 +3,7 @@ license: creativeml-openrail-m
3
  tags:
4
  - text-to-image
5
  - open-diffusion
 
6
  - openskyml
7
  language:
8
  - en
@@ -11,5 +12,47 @@ language:
11
  pipeline_tag: text-to-image
12
  ---
13
 
14
- # Open Diffusion
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  tags:
4
  - text-to-image
5
  - open-diffusion
6
+ - od-v1
7
  - openskyml
8
  language:
9
  - en
 
12
  pipeline_tag: text-to-image
13
  ---
14
 
15
+ # Open Diffusion V1
16
 
17
+ Generate cool images with OpenDiffusion V1 (OD-v1)
18
+
19
+ ## Model Details
20
+
21
+ ### Model Description
22
+
23
+ - **Developed by:** [OpenSkyML](https://huggingface.co/openskyml)
24
+ - **Model type:** [Multimodal (Text-to-Image)](https://huggingface.co/models?pipeline_tag=text-to-image)
25
+ - **License:** [CreativeML-Openrail-m](https://huggingface.co/models?license=license%3Acreativeml-openrail-m)
26
+
27
+ ### Model Sources
28
+
29
+ - **Repository:** [click](https://huggingface.co/openskyml/open-diffusion-v1/tree/main)
30
+ - **Demo [optional]:** In developed ...
31
+
32
+
33
+ ## Uses
34
+
35
+ ### In Free Inference API:
36
+ ```py
37
+ import requests
38
+ HF_READ_TOKEN = "..."
39
+ API_URL = "https://api-inference.huggingface.co/models/openskyml/open-diffusion-v1"
40
+ headers = {"Authorization": f"Bearer {HF_READ_TOKEN}"}
41
+
42
+ def query(payload):
43
+ response = requests.post(API_URL, headers=headers, json=payload)
44
+ return response.content
45
+ image_bytes = query({
46
+ "inputs": "Astronaut riding a horse",
47
+ })
48
+ # You can access the image with PIL.Image for example
49
+ import io
50
+ from PIL import Image
51
+ image = Image.open(io.BytesIO(image_bytes))
52
+ ```
53
+ ### In Spaces:
54
+ ```py
55
+ import gradio as gr
56
+
57
+ gr.load("models/openskyml/open-diffusion-v1").launch()
58
+ ```