Update app.py
Browse files
app.py
CHANGED
|
@@ -42,8 +42,6 @@ def chat_groq(message, history):
|
|
| 42 |
except Exception as e:
|
| 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
|
|
@@ -53,9 +51,8 @@ custom_theme = Base(
|
|
| 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 |
-
)
|
|
|
|
| 42 |
except Exception as e:
|
| 43 |
return f"Error: {e}"
|
| 44 |
|
|
|
|
|
|
|
| 45 |
|
| 46 |
from gradio.themes.base import Base
|
| 47 |
from gradio.themes.utils import colors
|
|
|
|
| 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 (Groq)",
|
| 57 |
theme=custom_theme
|
| 58 |
+
ui.launch()
|