deepakdethliya commited on
Commit
c2457b8
·
verified ·
1 Parent(s): f0c2e5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -58,10 +58,10 @@ def predict(message, history, system_prompt, max_tokens, temperature, top_p):
58
  partial_text += new_text
59
  yield partial_text
60
 
61
- # Custom theme
62
  theme = gr.themes.Soft(
63
- primary_hub_palette=gr.themes.colors.slate,
64
- secondary_hub_palette=gr.themes.colors.blue,
65
  ).set(
66
  body_background_fill="*neutral_50",
67
  block_background_fill="white",
 
58
  partial_text += new_text
59
  yield partial_text
60
 
61
+ # Custom theme (Fixed for Gradio 4+)
62
  theme = gr.themes.Soft(
63
+ primary_hue="slate",
64
+ secondary_hue="blue",
65
  ).set(
66
  body_background_fill="*neutral_50",
67
  block_background_fill="white",