Spaces:
Sleeping
Sleeping
Update app.py
Browse files204 unmodified lines20520620720820921021121221321421521620820921021922022122221121221313 unmodified lines227228229230231232233234235236237238239240204 unmodified lines# -------------------------# Main Runner Tool #
@tooldef get_now_showing_movies() -> str: """A tool that fetches the current screening movies at NEX cinema in Singapore. Args: no argument required. """ return asyncio.run(_get_now_showing_movies())
async def get_now_showing_movies(): """A tool that fetches the current screening movies at NEX cinema in Singapore. Args: no argument required. """ connector = aiohttp.TCPConnector(limit=CONCURRENT_REQUESTS)
async with aiohttp.ClientSession(connector=connector) as session:13 unmodified lines return json.dumps(results, indent=2, ensure_ascii=False)
@tooldef get_now_showing_movies() -> str: """A tool that fetches the current screening movies at NEX cinema in Singapore. Args: no argument required. """ return asyncio.run(_get_now_showing_movies()) # -----------------------
app.py+9-13