akhaliq HF staff commited on
Commit
155a561
1 Parent(s): 68f281e

add tutorial

Browse files
Files changed (1) hide show
  1. app.py +40 -1
app.py CHANGED
@@ -9,7 +9,46 @@ This space was created using [SD Space Creator](https://huggingface.co/spaces/an
9
  gr.Interface.load(
10
  name="models/darkstorm2150/Protogen_x3.4_Official_Release",
11
  title="""Protogen X3.4 Official Release""",
12
- description="""Demo for <a href="https://huggingface.co/darkstorm2150/Protogen_x3.4_Official_Release">Protogen X3.4 Official Release</a> Stable Diffusion model.""",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  article=article,
14
  api_key=API_KEY,
15
  ).queue(concurrency_count=20).launch()
 
9
  gr.Interface.load(
10
  name="models/darkstorm2150/Protogen_x3.4_Official_Release",
11
  title="""Protogen X3.4 Official Release""",
12
+ description="""Demo for <a href="https://huggingface.co/darkstorm2150/Protogen_x3.4_Official_Release">Protogen X3.4 Official Release</a> Stable Diffusion model.
13
+
14
+ # 🤗 No-code Gradio Demo Tutorial
15
+
16
+ This space contains a Gradio demo that was created **without typing any code**!
17
+ It enables you to generate photorealistic images based on a prompt.
18
+
19
+ Here are the steps to take to create your own demo *in a few minutes* without any code:
20
+
21
+ 1. You can easily create a demo using [this HF space](https://huggingface.co/spaces/anzorq/sd-space-creator). You will have to provide a token with write access to continue as shown in the image below:
22
+
23
+ <p align="center">
24
+ <img alt="gradio-demo-tutorial-1" src="https://huggingface.co/datasets/group2/tutorial-images/resolve/main/screenshots/1%20-%20gotToSpaceCreationl.PNG">
25
+ <em Enter a WRITE token.</em>
26
+ </p>
27
+ 2. If your token is valid, a prompt will enable you to specify the URL or ID of the model on the HF Hub you would like to use in this demo. For example [darkstorm2150/Protogen_x3.4_Official_Release](https://huggingface.co/darkstorm2150/Protogen_x3.4_Official_Release), which is a diffusion model able to generate photorealistic images from a prompt. Click on "Load model".
28
+
29
+ <p align="center">
30
+ <img alt="gradio-demo-tutorial-2" src="https://huggingface.co/datasets/group2/tutorial-images/resolve/main/screenshots/4-PasteTokenChooseModel.PNG">
31
+ <em Specify a model.</em>
32
+ </p>
33
+ 3. Then, you can specify a few details about your demo, such as:
34
+ - Name
35
+ - Title
36
+ - Description
37
+ - Space type
38
+ - Hardware (CPU? GPU?)
39
+ Click on "Create the space". Your space will now be getting built.
40
+
41
+ <p align="center">
42
+ <img alt="gradio-demo-tutorial-3" src="https://huggingface.co/datasets/group2/tutorial-images/resolve/main/screenshots/5-SpaceCreated.PNG">
43
+ <em Specify a model.</em>
44
+ </p>
45
+ 4. Once your space is built, you can reach it at https://huggingface.co/spaces/SPACE_NAME.
46
+ 5. You can enter a prompt to generate an image with the space you just built! The demo embedded in this space was created that way without typing any code!
47
+ <p align="center">
48
+ <img alt="gradio-demo-tutorial-5" src="https://huggingface.co/datasets/group2/tutorial-images/resolve/main/screenshots/6-GotYourNewSpace.PNG">
49
+ <em Specify a model.</em>
50
+ </p>
51
+ """,
52
  article=article,
53
  api_key=API_KEY,
54
  ).queue(concurrency_count=20).launch()