File size: 417 Bytes
822d179
 
99d20d2
074798d
822d179
 
 
99d20d2
 
074798d
 
 
 
822d179
 
 
074798d
 
 
822d179
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)