acecalisto3 commited on
Commit
d212066
1 Parent(s): f03b3b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -34,25 +34,26 @@ def generate(
34
 
35
  agent=prompts.WEB_DEV
36
  if agent_name == "WEB_DEV":
37
- agent = prompts.WEB_DEV_SYSTEM_PROMPT
38
  if agent_name == "CODE_REVIEW_ASSISTANT":
39
- agent = prompts.CODE_REVIEW_ASSISTANT
40
  if agent_name == "CONTENT_WRITER_EDITOR":
41
- agent = prompts.CONTENT_WRITER_EDITOR
42
  if agent_name == "SOCIAL_MEDIA_MANAGER":
43
- agent = prompts.SOCIAL_MEDIA_MANAGER
44
  if agent_name == "AI_SYSTEM_PROMPT":
45
- agent = prompts.AI_SYSTEM_PROMPT
46
  if agent_name == "PYTHON_CODE_DEV":
47
- agent = prompts.PYTHON_CODE_DEV
48
  #if agent_name == "MEME_GENERATOR":
49
- # agent = prompts.MEME_GENERATOR
50
  if agent_name == "QUESTION_GENERATOR":
51
  agent = prompts.QUESTION_GENERATOR
52
  #if agent_name == "IMAGE_GENERATOR":
53
- # agent = prompts.IMAGE_GENERATOR
54
  if agent_name == "HUGGINGFACE_FILE_DEV":
55
  agent = prompts.HUGGINGFACE_FILE_DEV
 
56
  system_prompt=agent
57
  temperature = float(temperature)
58
  if temperature < 1e-2:
 
34
 
35
  agent=prompts.WEB_DEV
36
  if agent_name == "WEB_DEV":
37
+ agent = prompts.WEB_DEV_SYSTEM_PROMPT
38
  if agent_name == "CODE_REVIEW_ASSISTANT":
39
+ agent = prompts.CODE_REVIEW_ASSISTANT
40
  if agent_name == "CONTENT_WRITER_EDITOR":
41
+ agent = prompts.CONTENT_WRITER_EDITOR
42
  if agent_name == "SOCIAL_MEDIA_MANAGER":
43
+ agent = prompts.SOCIAL_MEDIA_MANAGER
44
  if agent_name == "AI_SYSTEM_PROMPT":
45
+ agent = prompts.AI_SYSTEM_PROMPT
46
  if agent_name == "PYTHON_CODE_DEV":
47
+ agent = prompts.PYTHON_CODE_DEV
48
  #if agent_name == "MEME_GENERATOR":
49
+ # agent = prompts.MEME_GENERATOR
50
  if agent_name == "QUESTION_GENERATOR":
51
  agent = prompts.QUESTION_GENERATOR
52
  #if agent_name == "IMAGE_GENERATOR":
53
+ # agent = prompts.IMAGE_GENERATOR
54
  if agent_name == "HUGGINGFACE_FILE_DEV":
55
  agent = prompts.HUGGINGFACE_FILE_DEV
56
+
57
  system_prompt=agent
58
  temperature = float(temperature)
59
  if temperature < 1e-2: