piyk commited on
Commit
b9a8904
·
verified ·
1 Parent(s): c094310

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +52 -9
app.py CHANGED
@@ -1,3 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  #!/usr/bin/env python
2
 
3
  import os
@@ -95,8 +139,12 @@ def generate(
95
 
96
 
97
  examples = [
98
- "Full-body, realistic photo of a network engineer in a data center, conducting an experiment",
99
- "neon holography crystal cat"
 
 
 
 
100
  ]
101
 
102
  css = '''
@@ -105,11 +153,6 @@ h1{text-align:center}
105
  '''
106
  with gr.Blocks(css=css) as demo:
107
  gr.Markdown(DESCRIPTION)
108
- gr.Markdown(
109
- """
110
- Made by csit.udru.ac.th for non-commercial license
111
- """
112
- )
113
  gr.DuplicateButton(
114
  value="Duplicate Space for private use",
115
  elem_id="duplicate-button",
@@ -121,7 +164,7 @@ with gr.Blocks(css=css) as demo:
121
  label="Prompt",
122
  show_label=False,
123
  max_lines=1,
124
- placeholder="Describe the image you want",
125
  container=False,
126
  )
127
  run_button = gr.Button("Run", scale=0)
@@ -204,4 +247,4 @@ with gr.Blocks(css=css) as demo:
204
  )
205
 
206
  if __name__ == "__main__":
207
- demo.queue(max_size=20).launch()
 
1
+ Hugging Face's logo
2
+ Hugging Face
3
+ Search models, datasets, users...
4
+ Models
5
+ Datasets
6
+ Spaces
7
+ Posts
8
+ Docs
9
+ Pricing
10
+
11
+
12
+
13
+ Spaces:
14
+
15
+ playgroundai
16
+ /
17
+ playground-v2.5
18
+
19
+ like
20
+ 1.01k
21
+ App
22
+ Files
23
+ Community
24
+ 9
25
+ playground-v2.5
26
+ /
27
+ app.py
28
+
29
+ ehsanakh's picture
30
+ ehsanakh
31
+ Update app.py
32
+ 1fa0c6b
33
+ verified
34
+ 6 months ago
35
+ raw
36
+
37
+ Copy download link
38
+ history
39
+ blame
40
+ contribute
41
+ delete
42
+ No virus
43
+
44
+ 5.82 kB
45
  #!/usr/bin/env python
46
 
47
  import os
 
139
 
140
 
141
  examples = [
142
+ "neon holography crystal cat",
143
+ "a cat eating a piece of cheese",
144
+ "an astronaut riding a horse in space",
145
+ "a cartoon of a boy playing with a tiger",
146
+ "a cute robot artist painting on an easel, concept art",
147
+ "a close up of a woman wearing a transparent, prismatic, elaborate nemeses headdress, over the should pose, brown skin-tone"
148
  ]
149
 
150
  css = '''
 
153
  '''
154
  with gr.Blocks(css=css) as demo:
155
  gr.Markdown(DESCRIPTION)
 
 
 
 
 
156
  gr.DuplicateButton(
157
  value="Duplicate Space for private use",
158
  elem_id="duplicate-button",
 
164
  label="Prompt",
165
  show_label=False,
166
  max_lines=1,
167
+ placeholder="Enter your prompt",
168
  container=False,
169
  )
170
  run_button = gr.Button("Run", scale=0)
 
247
  )
248
 
249
  if __name__ == "__main__":
250
+ demo.queue(max_size=20).launch()