from flask import Flask 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)