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