Spaces:
Sleeping
Sleeping
Download geocoder/untitled0.py from SpatialWebAgent/docker2: direct link, hf CLI and curl.
- Browser
- Download file 574 Bytes
-
https://huggingface.co/spaces/SpatialWebAgent/docker2/resolve/b3bfa701720a83d4faafeabbf3b44588b45eb8a6/geocoder/untitled0.py
- Command line
-
hf download hf://spaces/SpatialWebAgent/docker2@b3bfa701720a83d4faafeabbf3b44588b45eb8a6/geocoder/untitled0.py
-
curl -L -o untitled0.py https://huggingface.co/spaces/SpatialWebAgent/docker2/resolve/b3bfa701720a83d4faafeabbf3b44588b45eb8a6/geocoder/untitled0.py
574 Bytes
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Wed Sep 21 21:44:47 2022 | |
| @author: syed | |
| """ | |
| import sys | |
| loc_dict = {"east":"This is east", "west": "This is west", "north":"This is north", | |
| "south":"This is south","up":"This is up","down":"This is down", | |
| "look":"This is the description", "quit": "To end the game"} | |
| user_input = input("Enter your desired location") | |
| def findLocation(input, loc_dict): | |
| if input == "quit": | |
| sys.exit(f"End of the game with code{input}!") | |
| else: | |
| print(loc_dict[input]) | |