ehristoforu commited on
Commit
fd8fa26
·
1 Parent(s): 38f12c0

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +35 -13
main.py CHANGED
@@ -60,6 +60,10 @@ theme = "Base"
60
 
61
 
62
  with gr.Blocks(theme=theme) as demo:
 
 
 
 
63
  gr.Markdown("""
64
  # ForgeStudio Large
65
 
@@ -68,7 +72,12 @@ with gr.Blocks(theme=theme) as demo:
68
 
69
  """)
70
 
71
-
 
 
 
 
 
72
 
73
 
74
  gr.DuplicateButton(value="Duplicate space for private use")
@@ -103,18 +112,22 @@ with gr.Blocks(theme=theme) as demo:
103
  with gr.Column():
104
  result_image = gr.Gallery(label="Result Image(s)", show_download_button=False, show_share_button=True)
105
 
106
- gr.Examples(
107
- examples=[
108
- ["A high tech solarpunk utopia in the Amazon rainforest"],
109
- ["A pikachu fine dining with a view to the Eiffel Tower"],
110
- ["A mecha robot in a favela in expressionist style"],
111
- ["an insect robot preparing a delicious meal"],
112
- ["A small cabin on top of a snowy mountain in the style of Disney, artstation"]
113
- ],
 
 
 
 
114
 
115
- inputs=[prompt],
116
- cache_examples=False,
117
- )
118
 
119
  run_btn.click(
120
  process_input_text2img,
@@ -140,7 +153,16 @@ with gr.Blocks(theme=theme) as demo:
140
 
141
  with gr.Row():
142
  negative = gr.Textbox(label="Negative Prompt", lines=3, placeholder="Add words you don't want to show up in your art...")
143
- init_image = gr.Textbox(label="Init Image Url", lines=3, placeholder="https://cdn.openai.com/API/images/guides/image_generation_simple.webp")
 
 
 
 
 
 
 
 
 
144
 
145
 
146
  with gr.Row():
 
60
 
61
 
62
  with gr.Blocks(theme=theme) as demo:
63
+
64
+
65
+
66
+
67
  gr.Markdown("""
68
  # ForgeStudio Large
69
 
 
72
 
73
  """)
74
 
75
+ with gr.Accordion("🆔 Account", open=False):
76
+ with gr.Row():
77
+ gr.LoginButton(size="sm")
78
+ gr.LogoutButton(size="sm")
79
+
80
+
81
 
82
 
83
  gr.DuplicateButton(value="Duplicate space for private use")
 
112
  with gr.Column():
113
  result_image = gr.Gallery(label="Result Image(s)", show_download_button=False, show_share_button=True)
114
 
115
+ with gr.Accordion("📑 Examples", open=False):
116
+ with gr.Row():
117
+ gr.Examples(
118
+
119
+ examples=[
120
+
121
+ ["A high tech solarpunk utopia in the Amazon rainforest"],
122
+ ["A pikachu fine dining with a view to the Eiffel Tower"],
123
+ ["A mecha robot in a favela in expressionist style"],
124
+ ["an insect robot preparing a delicious meal"],
125
+ ["A small cabin on top of a snowy mountain in the style of Disney, artstation"]
126
+ ],
127
 
128
+ inputs=[prompt],
129
+ cache_examples=False,
130
+ )
131
 
132
  run_btn.click(
133
  process_input_text2img,
 
153
 
154
  with gr.Row():
155
  negative = gr.Textbox(label="Negative Prompt", lines=3, placeholder="Add words you don't want to show up in your art...")
156
+
157
+ gr.Markdown("""
158
+
159
+ <p></p>
160
+
161
+ ⚠️ Attention, only images generated by ForgeStudio Large are accepted, that is, first generate an image in the txt2img section, and then insert a link to this image in the Init Image URL, for example: https://images.prodia.xyz/image.png
162
+
163
+ """)
164
+
165
+ init_image = gr.Textbox(label="Init Image Url", lines=3, placeholder="https://images.prodia.xyz/d372060f-673d-486d-b3a8-f2c8a33f25f3.png")
166
 
167
 
168
  with gr.Row():