mroccuper commited on
Commit
4e23d03
·
verified ·
1 Parent(s): 7b9bdd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -14
app.py CHANGED
@@ -1,4 +1,3 @@
1
- #--- START OF FILE app_FermentationSeo.py ---
2
 
3
  import gradio as gr
4
  import google.generativeai as genai
@@ -925,15 +924,15 @@ def save_api_key(api_key):
925
  return "✅ API key saved successfully!"
926
  return "⚠️ Please enter an API key to save"
927
 
928
- # Define theme for better visual experience
929
  custom_theme = gr.themes.Soft(
930
- primary_hue="green",
931
- secondary_hue="emerald",
932
  ).set(
933
- body_text_color="#333333",
934
  block_title_text_weight="600",
935
- button_primary_background_fill="linear-gradient(90deg, #84cc16 0%, #22c55e 100%)",
936
- button_primary_background_fill_hover="linear-gradient(90deg, #22c55e 0%, #84cc16 100%)",
937
  button_primary_text_color="white",
938
  block_label_text_size="0.9rem",
939
  block_title_text_size="1.2rem"
@@ -1185,11 +1184,10 @@ with gr.Blocks(title="Enhanced SEO Assistant", theme=custom_theme, css="""
1185
  if __name__ == "__main__":
1186
  print("🚀 Starting Enhanced SEO Assistant...")
1187
  app.launch(
1188
- share=True, # Set to False if you don't want public sharing
1189
- debug=True,
1190
- show_error=True,
1191
- server_name="0.0.0.0",
1192
- server_port=7860,
1193
- quiet=False
1194
  )
1195
- #--- END OF FILE app_FermentationSeo.py ---
 
 
1
 
2
  import gradio as gr
3
  import google.generativeai as genai
 
924
  return "✅ API key saved successfully!"
925
  return "⚠️ Please enter an API key to save"
926
 
927
+ # Enhanced theme
928
  custom_theme = gr.themes.Soft(
929
+ primary_hue="blue",
930
+ secondary_hue="purple",
931
  ).set(
932
+ body_text_color="#2d3748",
933
  block_title_text_weight="600",
934
+ button_primary_background_fill="linear-gradient(90deg, #667eea 0%, #764ba2 100%)",
935
+ button_primary_background_fill_hover="linear-gradient(90deg, #764ba2 0%, #667eea 100%)",
936
  button_primary_text_color="white",
937
  block_label_text_size="0.9rem",
938
  block_title_text_size="1.2rem"
 
1184
  if __name__ == "__main__":
1185
  print("🚀 Starting Enhanced SEO Assistant...")
1186
  app.launch(
1187
+ #share=True, # Set to False if you don't want public sharing
1188
+ #debug=True,
1189
+ #show_error=True,
1190
+ #server_name="0.0.0.0",
1191
+ #server_port=7860,
1192
+ #quiet=False
1193
  )