jed-tiotuico commited on
Commit
f08a09a
1 Parent(s): 34c50f2

fixed file not found error

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -344,7 +344,8 @@ if st.button("your website is straight up garbage. how do you sell high end tech
344
  )
345
 
346
  if st.button("Generate printer task/question"):
347
- seed_tasks = [json.loads(l) for l in open("printer-seed.jsonl", "r")]
 
348
  seed_instructions = [t["text"] for t in seed_tasks]
349
  prompt_instructions = []
350
  prompt_instructions += random.sample(seed_instructions, num_prompt_instructions - len(prompt_instructions))
 
344
  )
345
 
346
  if st.button("Generate printer task/question"):
347
+ num_prompt_instructions = 8
348
+ seed_tasks = [json.loads(l) for l in open("/data/printer-seed.jsonl", "r")]
349
  seed_instructions = [t["text"] for t in seed_tasks]
350
  prompt_instructions = []
351
  prompt_instructions += random.sample(seed_instructions, num_prompt_instructions - len(prompt_instructions))