Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 19, 2025
1 parent 3d4ead0 commit 2759cf2
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions examples/experimental/minecraft_agents/generate_toml.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pandas as pd

xlsx_file = 'examples\\experimental\\group_discussion_agents\\toml_generation.xlsx'
xlsx_file = "examples\\experimental\\group_discussion_agents\\toml_generation.xlsx"
df = pd.read_excel(xlsx_file)

toml_template = '''redis_url = "redis://localhost:6379/0"
Expand Down Expand Up @@ -63,17 +63,15 @@
'''

for index, row in df.iterrows():
goal_jack = row['Jack']
goal_jane = row['Jane']
goal_john = row['John']
filename = row['Filename']
goal_jack = row["Jack"]
goal_jane = row["Jane"]
goal_john = row["John"]
filename = row["Filename"]

toml_content = toml_template.format(
goal_jack=goal_jack,
goal_jane=goal_jane,
goal_john=goal_john
goal_jack=goal_jack, goal_jane=goal_jane, goal_john=goal_john
)

output_filename = f"group_discussion_agents_{filename}.toml"
with open(output_filename, 'w') as f:
f.write(toml_content)
with open(output_filename, "w") as f:
f.write(toml_content)

0 comments on commit 2759cf2

Please sign in to comment.