Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 64 |
-
|
| 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",
|