LobsterQQQ commited on
Commit
7e1ac68
·
1 Parent(s): 985293c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -69
app.py CHANGED
@@ -49,72 +49,3 @@ examples = [
49
  ],
50
  ]
51
 
52
- with block:
53
- gr.HTML(
54
- """
55
- <div style="text-align: center; max-width: 650px; margin: 0 auto;">
56
- <div>
57
- <img class="logo" src="https://cdn.discordapp.com/attachments/973596613933146123/1043954179481276416/747251668968350_.pic.jpg" alt="Weekend and Hyacinth Logo"
58
- style="margin: auto; max-width: 7rem;">
59
- <h1 style="font-weight: 900; font-size: 3rem; margin-top: 25px; margin-bottom: 25px;">
60
- Text to Nail set
61
- </h1>
62
- </div>
63
- <p style="margin-bottom: 5px; font-size: 94%">
64
- Generate a new Nail Set from a text description. Use the token {Nail Set} in your prompts for the effect.
65
- </p>
66
- </div>
67
- """
68
- )
69
- with gr.Group():
70
- with gr.Box():
71
- with gr.Row().style(mobile_collapse=False, equal_height=True):
72
- text = gr.Textbox(
73
- label="Enter your prompt",
74
- show_label=False,
75
- max_lines=1,
76
- placeholder="Enter your prompt",
77
- ).style(
78
- border=(True, False, True, True),
79
- rounded=(True, False, False, True),
80
- container=False,
81
- )
82
- btn = gr.Button("Generate image").style(
83
- margin=False,
84
- rounded=(False, True, True, False),
85
- )
86
-
87
- gallery = gr.Gallery(
88
- label="Generated images", show_label=False, elem_id="gallery"
89
- ).style(grid=[2], height="auto")
90
-
91
-
92
- with gr.Row(elem_id="advanced-options"):
93
- samples = gr.Slider(label="Images", minimum=1, maximum=4, value=2, step=1)
94
- steps = gr.Slider(label="Steps", minimum=50, maximum=100, value=50, step=5)
95
- scale = gr.Slider(
96
- label="Guidance Scale", minimum=0, maximum=50, value=7.5, step=0.1
97
- )
98
-
99
-
100
- ex = gr.Examples(examples=examples, fn=infer, inputs=[text, samples, scale], outputs=gallery, cache_examples=False)
101
- ex.dataset.headers = [""]
102
-
103
-
104
- text.submit(infer, inputs=[text, samples, steps, scale], outputs=gallery)
105
- btn.click(infer, inputs=[text, samples, steps, scale], outputs=gallery)
106
- gr.HTML(
107
- """
108
- <div class="footer">
109
- <p> Nail Diffuser by 💅 Weekend and Hyacinth
110
- </p>
111
- </div>
112
- <div class="acknowledgments">
113
- <p> Use the tokens {Nail Set} in your prompts for the effect.
114
- <p> Put in a text prompt and generate your own nail set!
115
- <p> Trained by Weekend and Hyacinth </p>
116
- </div>
117
- """
118
- )
119
-
120
- block.launch()
 
49
  ],
50
  ]
51