Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
c22268b
1
Parent(s):
fe8c4de
Update app.py
Browse files
app.py
CHANGED
@@ -118,34 +118,28 @@ def send_it12(inputs,proc12=proc12):
|
|
118 |
|
119 |
|
120 |
with gr.Blocks (css = 'main.css') as myface:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
gr.Pil(label="Crop")
|
134 |
-
with gr.Column(style="width=50%"):
|
135 |
-
gr.Pil(label="Draw")
|
136 |
-
with gr.Tab("Text"):
|
137 |
-
with gr.Row():
|
138 |
-
with gr.Column(scale=50):
|
139 |
-
gr.Textbox(label="", lines=8, interactive=True)
|
140 |
-
with gr.Column(scale=50):
|
141 |
-
gr.Textbox(label="", lines=8, interactive=True)
|
142 |
-
with gr.Tab("Color Picker"):
|
143 |
-
with gr.Row():
|
144 |
-
with gr.Column(scale=50):
|
145 |
-
gr.ColorPicker(label="Color", interactive=True)
|
146 |
-
with gr.Column(scale=50):
|
147 |
-
gr.ImagePaint(label="Draw", interactive=True)
|
148 |
-
with gr.Box(visible=True) as timo:
|
149 |
|
150 |
with gr.Row():
|
151 |
with gr.Column():
|
|
|
118 |
|
119 |
|
120 |
with gr.Blocks (css = 'main.css') as myface:
|
121 |
+
gr.HTML(" <div style='font-size: 20px; font-family:verdana; background-color:#609e3e; color:#FFFFFF; border:1px solid #FFFFFF; border-radius: 10px; width:50%; height: 30px; float: left; text-align:center;'> Your Promt Here</div> <div style='font-size: 20px; font-family:verdana; background-color:#609e3e; color:#FFFFFF; border:1px solid #FFFFFF; border-radius: 10px; width:50%; height: 30px; float:right;text-align: center;'> Choose model here </div> " )
|
122 |
+
with gr.Row():
|
123 |
+
input_text = gr.Textbox(label=" ",placeholder="1.PROMPT IDEA HERE ! ",lines=4)
|
124 |
+
# Model selection dropdown
|
125 |
+
model_name1 = gr.Dropdown(
|
126 |
+
label=" ",
|
127 |
+
choices=[m["name"] for m in models],
|
128 |
+
type="index",
|
129 |
+
value=current_model["name"],
|
130 |
+
interactive=True,
|
131 |
|
132 |
+
|
133 |
+
)
|
134 |
+
with gr.Row():
|
135 |
+
see_prompts = gr.Button("2. GENERATE YOUR PROMT IDEA HERE!")
|
136 |
+
run = gr.Button("3. GENERATE THE IMAGE HERE!", varant="primery")
|
137 |
+
|
138 |
+
with gr.Row():
|
139 |
+
output1 = gr.Image(label="")
|
140 |
+
|
141 |
+
with gr.Row():
|
142 |
+
magic1 = gr.Textbox(label="2. GENERATE IMAGE HERE ! ", lines=2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
|
144 |
with gr.Row():
|
145 |
with gr.Column():
|