RashiAgarwal
commited on
Commit
•
fcfd212
1
Parent(s):
04364b1
Update app.py
Browse files
app.py
CHANGED
@@ -152,8 +152,8 @@ def ref_loss(images,ref_image):
|
|
152 |
|
153 |
def inference(prompt, style_index):
|
154 |
|
155 |
-
styles = ['<midjourney-style>', '<hitokomoru-style>','<birb-style>','<summie-style>','<illustration-style>','<m-geo>']
|
156 |
-
embed = ['learned_embeds_m.bin','learned_embeds_h.bin', 'learned_embeds.bin', 'learned_embeds_s.bin','learned_embeds_i.bin','learned_embeds_mg.bin']
|
157 |
|
158 |
|
159 |
# Tokenize
|
@@ -329,9 +329,9 @@ gallery = gr.Gallery(label="Generated images", show_label=True, elem_id="gallery
|
|
329 |
gr.Interface(fn=inference, inputs=["text",
|
330 |
|
331 |
gr.Radio([('<midjourney-style>',0), ('<hitokomoru-style>',1),('<birb-style>',2),
|
332 |
-
('<summie-style>',3),('<illustration-style>',4),('<m-geo>',5)] , value = 0, label = '
|
333 |
outputs = gallery, title = title,
|
334 |
examples = [['a girl playing in snow',0],
|
335 |
-
['an oil painting of a goddess',
|
336 |
['a rabbit on the moon', 5 ]], ).launch(debug=True)
|
337 |
|
|
|
152 |
|
153 |
def inference(prompt, style_index):
|
154 |
|
155 |
+
styles = ['<midjourney-style>', '<hitokomoru-style>','<birb-style>','<summie-style>','<illustration-style>','<m-geo>','<buhu>']
|
156 |
+
embed = ['learned_embeds_m.bin','learned_embeds_h.bin', 'learned_embeds.bin', 'learned_embeds_s.bin','learned_embeds_i.bin','learned_embeds_mg.bin','learned_embeds_buhu']
|
157 |
|
158 |
|
159 |
# Tokenize
|
|
|
329 |
gr.Interface(fn=inference, inputs=["text",
|
330 |
|
331 |
gr.Radio([('<midjourney-style>',0), ('<hitokomoru-style>',1),('<birb-style>',2),
|
332 |
+
('<summie-style>',3),('<illustration-style>',4),('<m-geo>',5),('<buhu>',6)] , value = 0, label = 'Please select your choice of Style')],
|
333 |
outputs = gallery, title = title,
|
334 |
examples = [['a girl playing in snow',0],
|
335 |
+
['an oil painting of a goddess',6],
|
336 |
['a rabbit on the moon', 5 ]], ).launch(debug=True)
|
337 |
|