Futuretop commited on
Commit
4993a5f
·
verified ·
1 Parent(s): 32c810c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -15
app.py CHANGED
@@ -52,16 +52,6 @@ def infer(
52
 
53
  return image, seed
54
 
55
-
56
- examples = [
57
- "A capybara wearing a suit holding a sign that reads Hello World",
58
- "A serene mountain lake at sunset with cherry blossoms floating on the water",
59
- "A magical crystal dragon with iridescent scales in a glowing forest",
60
- "A Victorian steampunk teapot with intricate brass gears and rose gold accents",
61
- "A futuristic neon cityscape with flying cars and holographic billboards",
62
- "A red panda painter creating a masterpiece with tiny paws in an art studio",
63
- ]
64
-
65
  css = """
66
  body {
67
  background: linear-gradient(135deg, #f9e2e6 0%, #e8f3fc 50%, #e2f9f2 100%);
@@ -114,14 +104,12 @@ h1 {
114
 
115
  with gr.Blocks(theme="apriel", css=css) as demo:
116
  with gr.Column(elem_id="col-container"):
117
- gr.Markdown(" # TensorArt Stable Diffusion 3.5 Large TurboX")
118
- gr.Markdown("[8-step distilled turbo model](https://huggingface.co/tensorart/stable-diffusion-3.5-large-TurboX)")
119
  with gr.Row():
120
  prompt = gr.Text(
121
  label="Prompt",
122
  show_label=False,
123
  max_lines=1,
124
- placeholder="Enter your prompt",
125
  container=False,
126
  )
127
 
@@ -180,12 +168,11 @@ with gr.Blocks(theme="apriel", css=css) as demo:
180
  value=8,
181
  )
182
 
183
- gr.Examples(examples=examples, inputs=[prompt], outputs=[result, seed], fn=infer, cache_examples=True, cache_mode="lazy")
184
  gr.on(
185
  triggers=[run_button.click, prompt.submit],
186
  fn=infer,
187
  inputs=[
188
- prompt,
189
  negative_prompt,
190
  seed,
191
  randomize_seed,
 
52
 
53
  return image, seed
54
 
 
 
 
 
 
 
 
 
 
 
55
  css = """
56
  body {
57
  background: linear-gradient(135deg, #f9e2e6 0%, #e8f3fc 50%, #e2f9f2 100%);
 
104
 
105
  with gr.Blocks(theme="apriel", css=css) as demo:
106
  with gr.Column(elem_id="col-container"):
 
 
107
  with gr.Row():
108
  prompt = gr.Text(
109
  label="Prompt",
110
  show_label=False,
111
  max_lines=1,
112
+ placeholder="Enter your prompt copied from the previous website",
113
  container=False,
114
  )
115
 
 
168
  value=8,
169
  )
170
 
 
171
  gr.on(
172
  triggers=[run_button.click, prompt.submit],
173
  fn=infer,
174
  inputs=[
175
+ "cartoon styled korean" + prompt,
176
  negative_prompt,
177
  seed,
178
  randomize_seed,