johann22 commited on
Commit
f20de8c
1 Parent(s): d816c58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,9 +18,9 @@ def format_prompt(message, history):
18
  def generate(
19
  prompt, history, system_prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0, agent_name=None,
20
  ):
21
- if agent_name = "WEB_DEV":
22
  agent = prompt.WEB_DEV
23
- if agent_name = "AI_SYSTEM_PROMPT":
24
  agent = prompt.AI_SYSTEM_PROMPT
25
  system_prompt=agent
26
  temperature = float(temperature)
 
18
  def generate(
19
  prompt, history, system_prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0, agent_name=None,
20
  ):
21
+ if agent_name == "WEB_DEV":
22
  agent = prompt.WEB_DEV
23
+ if agent_name == "AI_SYSTEM_PROMPT":
24
  agent = prompt.AI_SYSTEM_PROMPT
25
  system_prompt=agent
26
  temperature = float(temperature)