Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ client = Groq(api_key=api_key)
|
|
16 |
|
17 |
def generate_response_groq(context, query):
|
18 |
"""Generate response using Groq API."""
|
19 |
-
prompt = f"You are a text generating model, given you a context and query, you have to answer the query in detail. Context: {context}\nQuestion: {query}\nAnswer: Your answer must be descriptive, into 2 lines atleast, also if you don't know any questions
|
20 |
chat_completion = client.chat.completions.create(
|
21 |
messages=[
|
22 |
{
|
|
|
16 |
|
17 |
def generate_response_groq(context, query):
|
18 |
"""Generate response using Groq API."""
|
19 |
+
prompt = f"You are a text generating model, given you a context and query, you have to answer the query in detail. Context: {context}\nQuestion: {query}\nAnswer: Your answer must be descriptive, into 2 lines atleast, also if you don't know any questions answer just say :I don't know"
|
20 |
chat_completion = client.chat.completions.create(
|
21 |
messages=[
|
22 |
{
|