Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,8 @@ agents =[
|
|
24 |
"SOCIAL_MEDIA_MANAGER",
|
25 |
"MEME_GENERATOR",
|
26 |
"QUESTION_GENERATOR",
|
|
|
|
|
27 |
]
|
28 |
temperature=0.9
|
29 |
max_new_tokens=256
|
@@ -62,8 +64,8 @@ def question_generate(prompt, history, agent_name=agents[0], sys_prompt="", temp
|
|
62 |
def generate(prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=1048, top_p=0.95, repetition_penalty=1.0,):
|
63 |
seed = random.randint(1,1111111111111111)
|
64 |
|
65 |
-
agent=prompts.
|
66 |
-
if agent_name == "WEB_DEV":
|
67 |
agent = prompts.WEB_DEV_SYSTEM_PROMPT
|
68 |
if agent_name == "CODE_REVIEW_ASSISTANT":
|
69 |
agent = prompts.CODE_REVIEW_ASSISTANT
|
@@ -78,7 +80,7 @@ def generate(prompt, history, agent_name=agents[0], sys_prompt="", temperature=0
|
|
78 |
if agent_name == "MEME_GENERATOR":
|
79 |
agent = prompts.MEME_GENERATOR
|
80 |
if agent_name == "QUESTION_GENERATOR":
|
81 |
-
agent = prompts.QUESTION_GENERATOR
|
82 |
system_prompt=agent
|
83 |
temperature = float(temperature)
|
84 |
if temperature < 1e-2:
|
|
|
24 |
"SOCIAL_MEDIA_MANAGER",
|
25 |
"MEME_GENERATOR",
|
26 |
"QUESTION_GENERATOR",
|
27 |
+
"AI_REPORT_WRITER",
|
28 |
+
|
29 |
]
|
30 |
temperature=0.9
|
31 |
max_new_tokens=256
|
|
|
64 |
def generate(prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=1048, top_p=0.95, repetition_penalty=1.0,):
|
65 |
seed = random.randint(1,1111111111111111)
|
66 |
|
67 |
+
agent=prompts.AI_REPORT_WRITER
|
68 |
+
''' if agent_name == "WEB_DEV":
|
69 |
agent = prompts.WEB_DEV_SYSTEM_PROMPT
|
70 |
if agent_name == "CODE_REVIEW_ASSISTANT":
|
71 |
agent = prompts.CODE_REVIEW_ASSISTANT
|
|
|
80 |
if agent_name == "MEME_GENERATOR":
|
81 |
agent = prompts.MEME_GENERATOR
|
82 |
if agent_name == "QUESTION_GENERATOR":
|
83 |
+
agent = prompts.QUESTION_GENERATOR '''
|
84 |
system_prompt=agent
|
85 |
temperature = float(temperature)
|
86 |
if temperature < 1e-2:
|