File size: 207 Bytes
063b4bb
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from fastapi import FastAPI
import requests

app = FastAPI()


@app.get('/')
async def read_root():
    req = requests.get("http://localhost:7860")

    return {"Hello": "World!", "status": req.status_code}