rosemariafontana commited on
Commit
bd5e916
·
verified ·
1 Parent(s): 1a3f77c

Update script_for_automation.py

Browse files
Files changed (1) hide show
  1. script_for_automation.py +1 -22
script_for_automation.py CHANGED
@@ -393,28 +393,7 @@ def generate_markdown_output(df):
393
  for diff in differences:
394
  for key, value in diff.items():
395
  markdown += f"#### {key.capitalize()}\n"
396
-
397
- # If the value is a string, output the string
398
- if isinstance(value, str):
399
- markdown += f"{value}\n"
400
-
401
- # If the value is a dictionary, pretty-print the dictionary
402
- elif isinstance(value, dict):
403
- markdown += "```\n"
404
- for sub_key, sub_value in value.items():
405
- markdown += f"{sub_key}: {sub_value}\n"
406
- markdown += "```\n"
407
-
408
- # If the value is a list, output the list items
409
- elif isinstance(value, list):
410
- markdown += "```\n"
411
- for item in value:
412
- markdown += f"{item}\n"
413
- markdown += "```\n"
414
-
415
- # For any other type, just print the value
416
- else:
417
- markdown += f"{value}\n"
418
 
419
  # 4. Prompts
420
  markdown += "\n## Prompts\n"
 
393
  for diff in differences:
394
  for key, value in diff.items():
395
  markdown += f"#### {key.capitalize()}\n"
396
+ markdown += f"{value}\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
397
 
398
  # 4. Prompts
399
  markdown += "\n## Prompts\n"