Spaces:
Running
Running
kneelesh48
commited on
Commit
β’
06ab451
1
Parent(s):
0214b2e
Update models
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ load_dotenv()
|
|
12 |
|
13 |
st.set_page_config(page_title="strftime AI", page_icon="π")
|
14 |
|
15 |
-
with open("static/style.css") as f:
|
16 |
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
|
17 |
|
18 |
st.header("strftime AI")
|
@@ -40,7 +40,7 @@ if text:
|
|
40 |
client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
|
41 |
chat_completion = client.chat.completions.create(
|
42 |
messages=[{"role": "user", "content": prompt}],
|
43 |
-
model="
|
44 |
max_tokens=1024,
|
45 |
)
|
46 |
st.markdown(chat_completion.choices[0].message.content)
|
|
|
12 |
|
13 |
st.set_page_config(page_title="strftime AI", page_icon="π")
|
14 |
|
15 |
+
with open("static/style.css", encoding="utf-8") as f:
|
16 |
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
|
17 |
|
18 |
st.header("strftime AI")
|
|
|
40 |
client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
|
41 |
chat_completion = client.chat.completions.create(
|
42 |
messages=[{"role": "user", "content": prompt}],
|
43 |
+
model="llama3-8b-8192",
|
44 |
max_tokens=1024,
|
45 |
)
|
46 |
st.markdown(chat_completion.choices[0].message.content)
|