Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -299,14 +299,14 @@ def generate(
|
|
299 |
):
|
300 |
seed = random.randint(1,1111111111111111)
|
301 |
|
302 |
-
|
303 |
if agent_name == "WEB_DEV":
|
304 |
-
agent =
|
305 |
if agent_name == "AI_SYSTEM_PROMPT":
|
306 |
-
agent =
|
307 |
if agent_name == "PYTHON_CODE_DEV":
|
308 |
-
agent =
|
309 |
-
system_prompt=agent
|
310 |
temperature = float(temperature)
|
311 |
if temperature < 1e-2:
|
312 |
temperature = 1e-2
|
|
|
299 |
):
|
300 |
seed = random.randint(1,1111111111111111)
|
301 |
|
302 |
+
# Correct the line:
|
303 |
if agent_name == "WEB_DEV":
|
304 |
+
agent = "You are a helpful AI assistant. You are a web developer."
|
305 |
if agent_name == "AI_SYSTEM_PROMPT":
|
306 |
+
agent = "You are a helpful AI assistant. You are an AI system."
|
307 |
if agent_name == "PYTHON_CODE_DEV":
|
308 |
+
agent = "You are a helpful AI assistant. You are a Python code developer."
|
309 |
+
system_prompt = agent
|
310 |
temperature = float(temperature)
|
311 |
if temperature < 1e-2:
|
312 |
temperature = 1e-2
|