Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
def chat_with_groq(user_message, history):
|
| 2 |
if not user_message or not user_message.strip():
|
| 3 |
return history, ""
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import gradio as gr
|
| 3 |
+
from groq import Groq
|
| 4 |
+
|
| 5 |
+
# -----------------------------
|
| 6 |
+
# Groq Client Initialization
|
| 7 |
+
# -----------------------------
|
| 8 |
def chat_with_groq(user_message, history):
|
| 9 |
if not user_message or not user_message.strip():
|
| 10 |
return history, ""
|