Spaces:
Sleeping
Sleeping
Update app.py
Browse files6 unmodified lines7891011126 unmodified linesapp = FastAPI(title="ChatGPT OS Key Faucet")# --- CONFIGURATION ---TARGET_SPACE_URL = "https://coollamaceo-chatgptopensource1-0.hf.space/chat"DB_PATH = "/data/keys.db" if os.path.exists("/data") else "keys.db"6 unmodified lines78910111213141516171819206 unmodified linesapp = FastAPI(title="ChatGPT OS Key Faucet")app.add_middleware(CORSMiddleware,allow_origins=["*"], # Allows all originsallow_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