Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,14 @@ footer {
|
|
17 |
}
|
18 |
'''
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
DESCRIPTIONXX = """
|
22 |
|
@@ -141,16 +149,30 @@ def load_predefined_images():
|
|
141 |
]
|
142 |
return predefined_images
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
with gr.Blocks(css=css, theme="allenai/gradio-theme") as demo:
|
145 |
gr.Markdown(DESCRIPTIONXX)
|
146 |
-
with gr.
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
|
|
|
|
154 |
run_button = gr.Button("Run⚡", scale=0)
|
155 |
result = gr.Gallery(label="Result", columns=1, show_label=False)
|
156 |
|
|
|
17 |
}
|
18 |
'''
|
19 |
|
20 |
+
# Define the custom CSS
|
21 |
+
custom_css = """
|
22 |
+
input::placeholder {
|
23 |
+
color: pink;
|
24 |
+
}
|
25 |
+
"""
|
26 |
+
# Inject the custom CSS into the Gradio interface
|
27 |
+
css_block = f"<style>{custom_css}</style>"
|
28 |
|
29 |
DESCRIPTIONXX = """
|
30 |
|
|
|
149 |
]
|
150 |
return predefined_images
|
151 |
|
152 |
+
#with gr.Blocks(css=css, theme="allenai/gradio-theme") as demo:
|
153 |
+
# gr.Markdown(DESCRIPTIONXX)
|
154 |
+
# with gr.Row():
|
155 |
+
# prompt = gr.Text(
|
156 |
+
# label="Prompt",
|
157 |
+
# show_label=False,
|
158 |
+
# max_lines=1,
|
159 |
+
# placeholder="Enter your prompt",
|
160 |
+
# container=False,
|
161 |
+
#)
|
162 |
+
|
163 |
+
# Define the Gradio interface
|
164 |
with gr.Blocks(css=css, theme="allenai/gradio-theme") as demo:
|
165 |
gr.Markdown(DESCRIPTIONXX)
|
166 |
+
with gr.HTML(css_block): # Inject the CSS here
|
167 |
+
with gr.Row():
|
168 |
+
prompt = gr.Textbox(
|
169 |
+
label="Prompt",
|
170 |
+
show_label=False,
|
171 |
+
max_lines=1,
|
172 |
+
placeholder="Enter your prompt",
|
173 |
+
container=False,
|
174 |
+
)
|
175 |
+
|
176 |
run_button = gr.Button("Run⚡", scale=0)
|
177 |
result = gr.Gallery(label="Result", columns=1, show_label=False)
|
178 |
|