Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions evaluation_function/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ def main():
- If 2+ args provided: File-based communication (last 2 args are input/output paths)
- Otherwise: RPC/IPC server mode using lf_toolkit
"""
# Check for file-based communication
# shimmy passes input and output file paths as the last two arguments
if len(sys.argv) >= 3:
input_path = sys.argv[-2]
output_path = sys.argv[-1]
# # Check for file-based communication
# # shimmy passes input and output file paths as the last two arguments
# if len(sys.argv) >= 3:
# input_path = sys.argv[-2]
# output_path = sys.argv[-1]

# Verify they look like file paths (basic check)
if not input_path.startswith('-') and not output_path.startswith('-'):
handle_file_based_communication(input_path, output_path)
return
# # Verify they look like file paths (basic check)
# if not input_path.startswith('-') and not output_path.startswith('-'):
# handle_file_based_communication(input_path, output_path)
# return

# Fall back to RPC/IPC server mode
server = create_server()
Expand Down