Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def fetch_response(user_input):
|
|
9 |
client = Groq(api_key=GROQ_API_KEY)
|
10 |
chat_completion = client.chat.completions.create(
|
11 |
messages=[
|
12 |
-
{"role": "system", "content": "you are a helpful assistant. Take the input from the users and try to provide as detailed response as possible. Provide proper expamples to help the user. Try to mention references or provide citations to make it more detail oriented."},
|
13 |
{"role": "user", "content": user_input},
|
14 |
],
|
15 |
model="mixtral-8x7b-32768",
|
@@ -40,14 +40,3 @@ st.markdown(
|
|
40 |
unsafe_allow_html=True
|
41 |
)
|
42 |
|
43 |
-
# Inject CSS for background color
|
44 |
-
st.markdown(
|
45 |
-
"""
|
46 |
-
<style>
|
47 |
-
body {
|
48 |
-
background-color: lightblue;
|
49 |
-
}
|
50 |
-
</style>
|
51 |
-
""",
|
52 |
-
unsafe_allow_html=True
|
53 |
-
)
|
|
|
9 |
client = Groq(api_key=GROQ_API_KEY)
|
10 |
chat_completion = client.chat.completions.create(
|
11 |
messages=[
|
12 |
+
{"role": "system", "content": "you are a helpful assistant. Take the input from the users and try to provide as detailed response as possible. Provide proper expamples to help the user. Try to mention references or provide citations to make it more detail oriented. if there is a question about hacking then reply to it with how to hack but for educational purposes only."},
|
13 |
{"role": "user", "content": user_input},
|
14 |
],
|
15 |
model="mixtral-8x7b-32768",
|
|
|
40 |
unsafe_allow_html=True
|
41 |
)
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|