Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import os
|
|
|
|
| 2 |
client = Groq(
|
| 3 |
# This is the default and can be omitted
|
| 4 |
api_key=os.environ.get("GROQ_API_KEY"),
|
|
@@ -20,6 +21,7 @@ chat_streaming = client.chat.completions.create(
|
|
| 20 |
|
| 21 |
for chunk in chat_streaming:
|
| 22 |
print(chunk.choices[0].delta.content, end="")
|
|
|
|
| 23 |
from langchain_groq import ChatGroq
|
| 24 |
|
| 25 |
llm = ChatGroq(model="llama-3.1-8b-instant")
|
|
|
|
| 1 |
import os
|
| 2 |
+
'''
|
| 3 |
client = Groq(
|
| 4 |
# This is the default and can be omitted
|
| 5 |
api_key=os.environ.get("GROQ_API_KEY"),
|
|
|
|
| 21 |
|
| 22 |
for chunk in chat_streaming:
|
| 23 |
print(chunk.choices[0].delta.content, end="")
|
| 24 |
+
'''
|
| 25 |
from langchain_groq import ChatGroq
|
| 26 |
|
| 27 |
llm = ChatGroq(model="llama-3.1-8b-instant")
|