File size: 501 Bytes
bf00a95
822d179
99d20d2
074798d
822d179
 
 
15833f6
 
074798d
0c973d4
822d179
 
 
0c973d4
 
 
 
 
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, request
from time import sleep
import os
import requests

app = Flask(__name__)

headers = {'Authorization': os.environ.get("auth")}
print(headers)

temp = {}

@app.route("/")
def index():
    p = request.args.get('p', default='default_value')  # 提供默認值
    temp[p] = "123"
    # url = 'https://yuripeyamashita-fetch2.hf.space/'    
    # response = requests.get(url, headers=headers)
    return temp

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=7860)