Spaces:
Runtime error
Runtime error
HusseinEid
commited on
Commit
•
f16c19e
1
Parent(s):
a2fcc5a
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ client = Groq(api_key = os.environ.get("GROQ_API_KEY"), )
|
|
10 |
system_prompt = {
|
11 |
"role": "system",
|
12 |
"content":
|
13 |
-
"You are a
|
14 |
}
|
15 |
|
16 |
async def chat_groq(message, history):
|
@@ -39,7 +39,7 @@ async def chat_groq(message, history):
|
|
39 |
response_content += chunk. choices[0].delta.content
|
40 |
yield response_content
|
41 |
|
42 |
-
with gr. Blocks(theme=gr.themes.
|
43 |
gr.ChatInterface( chat_groq,
|
44 |
clear_btn=None,
|
45 |
undo_btn=None,
|
|
|
10 |
system_prompt = {
|
11 |
"role": "system",
|
12 |
"content":
|
13 |
+
"You are a useful assistant. You reply with detailed answers. "
|
14 |
}
|
15 |
|
16 |
async def chat_groq(message, history):
|
|
|
39 |
response_content += chunk. choices[0].delta.content
|
40 |
yield response_content
|
41 |
|
42 |
+
with gr. Blocks(theme=gr.themes.Monochrome(), fill_height=True) as demo:
|
43 |
gr.ChatInterface( chat_groq,
|
44 |
clear_btn=None,
|
45 |
undo_btn=None,
|