johann22 commited on
Commit
889f93a
1 Parent(s): f55f4d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -22,6 +22,8 @@ agents =[
22
  "SOCIAL_MEDIA_MANAGER",
23
  "MEME_GENERATOR",
24
  "QUESTION_GENERATOR",
 
 
25
  ]
26
  def generate(
27
  prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,
@@ -44,7 +46,9 @@ def generate(
44
  if agent_name == "MEME_GENERATOR":
45
  agent = prompts.MEME_GENERATOR
46
  if agent_name == "QUESTION_GENERATOR":
47
- agent = prompts.QUESTION_GENERATOR
 
 
48
  system_prompt=agent
49
  temperature = float(temperature)
50
  if temperature < 1e-2:
 
22
  "SOCIAL_MEDIA_MANAGER",
23
  "MEME_GENERATOR",
24
  "QUESTION_GENERATOR",
25
+ "IMAGE_GENERATOR",
26
+
27
  ]
28
  def generate(
29
  prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,
 
46
  if agent_name == "MEME_GENERATOR":
47
  agent = prompts.MEME_GENERATOR
48
  if agent_name == "QUESTION_GENERATOR":
49
+ agent = prompts.QUESTION_GENERATOR
50
+ if agent_name == "IMAGE_GENERATOR":
51
+ agent = prompts.IMAGE_GENERATOR
52
  system_prompt=agent
53
  temperature = float(temperature)
54
  if temperature < 1e-2: