acecalisto3 commited on
Commit
d0c838a
·
verified ·
1 Parent(s): b78aa21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -299,14 +299,14 @@ def generate(
299
  ):
300
  seed = random.randint(1,1111111111111111)
301
 
302
- agent=prompts.WEB_DEV
303
  if agent_name == "WEB_DEV":
304
- agent = prompts.WEB_DEV
305
  if agent_name == "AI_SYSTEM_PROMPT":
306
- agent = prompts.AI_SYSTEM_PROMPT
307
  if agent_name == "PYTHON_CODE_DEV":
308
- agent = prompts.PYTHON_CODE_DEV
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