acecalisto3 commited on
Commit
5b6707c
·
verified ·
1 Parent(s): 66677ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -214,8 +214,6 @@ def format_prompt(message, history):
214
 
215
  agents = [
216
  "WEB_DEV",
217
- agents = [
218
- "WEB_DEV",
219
  "AI_SYSTEM_PROMPT",
220
  "PYTHON_CODE_DEV"
221
  ]
@@ -228,9 +226,9 @@ def generate(
228
  agent = prompts.WEB_DEV
229
  if agent_name == "WEB_DEV":
230
  agent = prompts.WEB_DEV
231
- if agent_name == "AI_SYSTEM_PROMPT":
232
  agent = prompts.AI_SYSTEM_PROMPT
233
- if agent_name == "PYTHON_CODE_DEV":
234
  agent = prompts.PYTHON_CODE_DEV
235
  system_prompt = agent
236
  temperature = float(temperature)
@@ -301,4 +299,5 @@ additional_inputs = [
301
  minimum=1.0,
302
  maximum=2.0,
303
  step=0.05,
304
-
 
 
214
 
215
  agents = [
216
  "WEB_DEV",
 
 
217
  "AI_SYSTEM_PROMPT",
218
  "PYTHON_CODE_DEV"
219
  ]
 
226
  agent = prompts.WEB_DEV
227
  if agent_name == "WEB_DEV":
228
  agent = prompts.WEB_DEV
229
+ elif agent_name == "AI_SYSTEM_PROMPT":
230
  agent = prompts.AI_SYSTEM_PROMPT
231
+ elif agent_name == "PYTHON_CODE_DEV":
232
  agent = prompts.PYTHON_CODE_DEV
233
  system_prompt = agent
234
  temperature = float(temperature)
 
299
  minimum=1.0,
300
  maximum=2.0,
301
  step=0.05,
302
+ ),
303
+ ]