Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ else:
|
|
19 |
|
20 |
# Initialize PhiData Agent
|
21 |
agent = Agent(
|
22 |
-
model=Groq(
|
23 |
instructions=[
|
24 |
"You are a helpful assistant designed to answer questions on various topics.",
|
25 |
"Provide concise and accurate responses.",
|
@@ -36,6 +36,7 @@ def simple_chat_function(message, history):
|
|
36 |
# Generate response using PhiData agent
|
37 |
try:
|
38 |
response = agent.run(message)
|
|
|
39 |
response_text = response.content if hasattr(response, 'content') else "Error generating response."
|
40 |
except Exception as e:
|
41 |
logger.error(f"Agent error: {e}")
|
|
|
19 |
|
20 |
# Initialize PhiData Agent
|
21 |
agent = Agent(
|
22 |
+
model=Groq(id="llama3-70b-8192", api_key=api_key),
|
23 |
instructions=[
|
24 |
"You are a helpful assistant designed to answer questions on various topics.",
|
25 |
"Provide concise and accurate responses.",
|
|
|
36 |
# Generate response using PhiData agent
|
37 |
try:
|
38 |
response = agent.run(message)
|
39 |
+
print(response)
|
40 |
response_text = response.content if hasattr(response, 'content') else "Error generating response."
|
41 |
except Exception as e:
|
42 |
logger.error(f"Agent error: {e}")
|