Spaces:
Sleeping
Sleeping
| from fastapi import FastAPI | |
| import requests | |
| app = FastAPI() | |
| def hello(): | |
| return {"health": "running"} | |
| def get_ip(): | |
| ip = requests.get("https://ip4only.me/api/").text.split(",")[1] | |
| return {"server_ip": ip} | |