Spaces:
Sleeping
Sleeping
removed unused code
Browse files
app.py
CHANGED
|
@@ -10,20 +10,6 @@ client = Groq(
|
|
| 10 |
api_key=os.environ.get("GROQ_API_KEY"),
|
| 11 |
)
|
| 12 |
|
| 13 |
-
chat_completion = client.chat.completions.create(
|
| 14 |
-
messages=[
|
| 15 |
-
{
|
| 16 |
-
"role": "system",
|
| 17 |
-
"content": "you are a healthy chef who is going to converse with user and provide recipes",
|
| 18 |
-
},
|
| 19 |
-
{
|
| 20 |
-
"role": "user",
|
| 21 |
-
"content": "give me healthy recipe",
|
| 22 |
-
},
|
| 23 |
-
],
|
| 24 |
-
model="llama3-70b-8192",
|
| 25 |
-
)
|
| 26 |
-
|
| 27 |
|
| 28 |
def chat_with_groq(input_text,additional_info = None):
|
| 29 |
chat_completion = client.chat.completions.create(
|
|
|
|
| 10 |
api_key=os.environ.get("GROQ_API_KEY"),
|
| 11 |
)
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
def chat_with_groq(input_text,additional_info = None):
|
| 15 |
chat_completion = client.chat.completions.create(
|