Zekun Wu commited on
Commit
0bacd3a
·
1 Parent(s): 6adf9db
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def get_potshots(n_repeat=1, batch=20, role="Developer", tone="humorous", audien
68
  while len(total_potshots) < desired_count:
69
  needed = min(batch, desired_count - len(total_potshots))
70
  prompt = generate_potshot_prompt(batch=needed, role=role, tone=tone, audience=audience, values=values)
71
- response = GPTAgent.invoke(prompt, mode="generate")
72
  try:
73
  batch_potshots = json.loads(response).get("potshots", [])
74
  total_potshots.extend(batch_potshots)
 
68
  while len(total_potshots) < desired_count:
69
  needed = min(batch, desired_count - len(total_potshots))
70
  prompt = generate_potshot_prompt(batch=needed, role=role, tone=tone, audience=audience, values=values)
71
+ response = GPTAgent.invoke(prompt)
72
  try:
73
  batch_potshots = json.loads(response).get("potshots", [])
74
  total_potshots.extend(batch_potshots)