Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,15 +47,9 @@ model = OpenAIServerModel(
|
|
47 |
temperature=0.5,
|
48 |
model_id="gpt-4",
|
49 |
api_key=os.getenv("OPENAI_API_KEY"),
|
50 |
-
system_prompt="You are an AI assistant with access to several tools. "
|
51 |
-
"Always use the available tools to answer questions instead of generating Python code. "
|
52 |
-
"If a user asks for the current time in a location, call the appropriate tool instead of calculating it manually.",
|
53 |
custom_role_conversions=None,
|
54 |
)
|
55 |
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
# Import tool from Hub
|
60 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
61 |
|
|
|
47 |
temperature=0.5,
|
48 |
model_id="gpt-4",
|
49 |
api_key=os.getenv("OPENAI_API_KEY"),
|
|
|
|
|
|
|
50 |
custom_role_conversions=None,
|
51 |
)
|
52 |
|
|
|
|
|
|
|
53 |
# Import tool from Hub
|
54 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
55 |
|