Spaces:
Sleeping
Sleeping
Update app.py
Browse files6 unmodified lines78910111213141516171819206 unmodified lines
app = FastAPI(title="ChatGPT OS Key Faucet")
app.add_middleware( CORSMiddleware, allow_origins=["*"], # Allows all origins allow_credentials=True, allow_methods=["*"], # Allows all methods (GET, POST, PUT, DELETE, etc.) allow_headers=["*"], # Allows all headers)
# --- CONFIGURATION ---TARGET_SPACE_URL = "https://coollamaceo-chatgptopensource1-0.hf.space/chat"DB_PATH = "/data/keys.db" if os.path.exists("/data") else "keys.db"app.py+8