prithivMLmods commited on
Commit
5f92475
1 Parent(s): 18b7f35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -31
app.py CHANGED
@@ -17,15 +17,6 @@ footer {
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
 
31
  ## TEXT 2 IMG🥠
@@ -149,30 +140,16 @@ def load_predefined_images():
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
 
 
17
  }
18
  '''
19
 
 
 
 
 
 
 
 
 
 
20
  DESCRIPTIONXX = """
21
 
22
  ## TEXT 2 IMG🥠
 
140
  ]
141
  return predefined_images
142
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  with gr.Blocks(css=css, theme="allenai/gradio-theme") as demo:
144
  gr.Markdown(DESCRIPTIONXX)
145
+ with gr.Row():
146
+ prompt = gr.Text(
147
+ label="Prompt",
148
+ show_label=False,
149
+ max_lines=1,
150
+ placeholder="Enter your prompt",
151
+ container=False,
152
+ )
 
 
153
  run_button = gr.Button("Run⚡", scale=0)
154
  result = gr.Gallery(label="Result", columns=1, show_label=False)
155