Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
navpan2/selenium
navpan2
/
requestor
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
5d8f00c
requestor
/
main.py
navpan2
Update main.py
5d8f00c
over 1 year ago
raw
Copy download link
history
blame
Safe
258 Bytes
from
fastapi
import
FastAPI
import
requests
app = FastAPI()
@app.get(
"/"
)
def
read_root
():
return
{
"Hello"
:
"World"
}
@app.get(
"/request/"
)
async
def
read_item
(
reqUrl
):
response=requests.get(reqUrl)
a=response.text
return
{
"Response"
: a}