Files
sci-gui-agent-benchmark/desktop_env/evaluators/getters/general.py
2024-01-10 21:25:14 +08:00

23 lines
356 B
Python

from typing import Dict
import os
import requests
def get_string(env, config: Dict[str, str]) -> str:
"""
Config:
string (str)
"""
return config["string"]
def get_command_line(env, config: Dict[str, str]) -> str:
"""
Config:
string (str)
"""
f = os.popen(config["command"])
return f.read()