Wedyan2023 commited on
Commit
9964651
·
verified ·
1 Parent(s): ceee057

Update app110.py

Browse files
Files changed (1) hide show
  1. app110.py +4 -2
app110.py CHANGED
@@ -414,7 +414,8 @@ if "task_choice" in st.session_state:
414
  "{system_role}\n"
415
  "- Use the following parameters:\n"
416
  "- Generate {num_examples} examples\n"
417
- "- Each example should be between {min_words} to {max_words} words long, 50 words short text and more than 50 words long text with not less than 4 lines\n"
 
418
  "- Use these labels: {labels}.\n"
419
  "- Use the following additional attributes:\n"
420
  "- {additional_attributes}\n"
@@ -431,7 +432,8 @@ if "task_choice" in st.session_state:
431
 
432
  )
433
  )
434
-
 
435
  ##########new 22/4/2025
436
  formatted_attributes = "\n".join([
437
  f"- {attr['attribute']}: {', '.join(attr['topics'])}" for attr in additional_attributes
 
414
  "{system_role}\n"
415
  "- Use the following parameters:\n"
416
  "- Generate {num_examples} examples\n"
417
+ "- Each example should be between {min_words} to {max_words} words long, every 20 words can be a line long, so write a line for each 20 words where if the number of word 100, it should be 5 lines long.
418
+ \n"
419
  "- Use these labels: {labels}.\n"
420
  "- Use the following additional attributes:\n"
421
  "- {additional_attributes}\n"
 
432
 
433
  )
434
  )
435
+ #every 20 words can be a line long, so write a line for each 20 words where if the number of word 100, it should be 5 lines long.
436
+ #50 words short text and more than 50 words long text with not less than 4 lines
437
  ##########new 22/4/2025
438
  formatted_attributes = "\n".join([
439
  f"- {attr['attribute']}: {', '.join(attr['topics'])}" for attr in additional_attributes