yuripeyamashita's picture
Update app.py
99d20d2 verified
raw
history blame
417 Bytes
from flask import Flask
from time import sleep
import os
import requests
app = Flask(__name__)
print(os.environ.get("auth"))
headers = {
'Authorization': os.environ.get("auth"),
},
@app.route("/")
def index():
url = 'https://yuripeyamashita-fetch2.hf.space/'
response = requests.get(url, headers=headers)
return response.json
if __name__ == "__main__":
app.run(host="0.0.0.0", port=7860)