cyberandy commited on
Commit
8d9dd3f
·
verified ·
1 Parent(s): d819239

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -28
app.py CHANGED
@@ -258,14 +258,21 @@ def create_gradio_interface():
258
 
259
  return output
260
 
261
- # Create interface with custom styling
 
 
 
 
 
 
262
  interface = gr.Interface(
263
  fn=analyze,
264
  inputs=gr.Textbox(
265
  lines=5,
266
- placeholder="Enter your marketing content here..."
 
267
  ),
268
- outputs=gr.Textbox(),
269
  title="Marketing Content Analyzer",
270
  description="Analyze your marketing content using Gemma Scope's neural features",
271
  examples=[
@@ -273,31 +280,9 @@ def create_gradio_interface():
273
  ["Our advanced machine learning algorithms optimize your content"],
274
  ["Simple and effective website optimization"]
275
  ],
276
- theme=gr.themes.Soft(
277
- primary_hue="blue",
278
- secondary_hue="blue",
279
- neutral_hue="blue",
280
- ).style(
281
- button_primary_background_color="#3452db",
282
- button_secondary_background_color="#f5f5f5",
283
- button_primary_text_color="white",
284
- button_secondary_text_color="#3452db",
285
-
286
- # Additional styling
287
- primary_container_background_fill="#f8f9ff",
288
- block_background_fill="#ffffff",
289
- block_border_width="1px",
290
- block_border_color="#e5e7eb",
291
- block_radius="8px",
292
- block_shadow="0 1px 3px rgba(0,0,0,0.1)",
293
-
294
- # Make textbox more prominent
295
- input_background_fill="#ffffff",
296
- input_border_color="#d1d5db",
297
- input_border_width="1px",
298
- input_radius="6px",
299
- input_shadow="0 1px 2px rgba(0,0,0,0.05)"
300
- )
301
  )
302
 
303
  return interface
 
258
 
259
  return output
260
 
261
+ # Create interface with custom theming
262
+ custom_theme = gr.Theme.from_hub("gradio/seafoam").set(
263
+ primary_hue="indigo",
264
+ secondary_hue="blue",
265
+ neutral_hue="gray"
266
+ )
267
+
268
  interface = gr.Interface(
269
  fn=analyze,
270
  inputs=gr.Textbox(
271
  lines=5,
272
+ placeholder="Enter your marketing content here...",
273
+ label="Marketing Content"
274
  ),
275
+ outputs=gr.Textbox(label="Analysis Results"),
276
  title="Marketing Content Analyzer",
277
  description="Analyze your marketing content using Gemma Scope's neural features",
278
  examples=[
 
280
  ["Our advanced machine learning algorithms optimize your content"],
281
  ["Simple and effective website optimization"]
282
  ],
283
+ theme=custom_theme,
284
+ css=".gradio-container {background-color: #f8f9ff}"
285
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  )
287
 
288
  return interface