Update app.py
Browse files
app.py
CHANGED
|
@@ -43,4 +43,19 @@ def chat_groq(message, history):
|
|
| 43 |
return f"Error: {e}"
|
| 44 |
|
| 45 |
ui = gr.ChatInterface(fn=chat_groq, title="Affan's GenAI App (Groq)")
|
| 46 |
-
ui.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
return f"Error: {e}"
|
| 44 |
|
| 45 |
ui = gr.ChatInterface(fn=chat_groq, title="Affan's GenAI App (Groq)")
|
| 46 |
+
ui.launch()
|
| 47 |
+
|
| 48 |
+
from gradio.themes.base import Base
|
| 49 |
+
from gradio.themes.utils import colors
|
| 50 |
+
|
| 51 |
+
custom_theme = Base(
|
| 52 |
+
primary_hue=colors.blue,
|
| 53 |
+
secondary_hue=colors.indigo,
|
| 54 |
+
neutral_hue=colors.gray,
|
| 55 |
+
)
|
| 56 |
+
|
| 57 |
+
ui = gr.ChatInterface(
|
| 58 |
+
fn=chat_groq,
|
| 59 |
+
title="Affan's GenAI App (Groq)",
|
| 60 |
+
theme=custom_theme
|
| 61 |
+
)
|