jefmon01 commited on
Commit
0c65aed
·
1 Parent(s): e2a1e01

Update space

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -14,7 +14,7 @@ Hugging Face Space — Gradio app for a live, executive-focused Cybersecurity RP
14
  - Optional pre-game briefing field
15
 
16
  Required Secrets/Variables (set in Space Settings → Secrets & Variables):
17
- - OPENAI_API_KEY (Secret)
18
  Optional Variables (provide sane defaults below):
19
  - OPENAI_MODEL (e.g., "gpt-5-mini")
20
  - SYSTEM_PROMPT (overrides the default RPG prompt below)
@@ -65,10 +65,10 @@ GLOBAL_RPM_SOFT = int(os.getenv("GLOBAL_RPM_SOFT", "350")) # soft limit; app se
65
  MAX_TOKENS = int(os.getenv("MAX_TOKENS", "320"))
66
  TEMPERATURE = float(os.getenv("TEMPERATURE", "0.5"))
67
 
68
- if not os.getenv("OPENAI_API_KEY"):
69
- raise RuntimeError("OPENAI_API_KEY is not set. Add it in Space Settings → Secrets.")
70
 
71
- client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
72
 
73
  # -----------------
74
  # Rate limiting
 
14
  - Optional pre-game briefing field
15
 
16
  Required Secrets/Variables (set in Space Settings → Secrets & Variables):
17
+ - TableTopKey (Secret)
18
  Optional Variables (provide sane defaults below):
19
  - OPENAI_MODEL (e.g., "gpt-5-mini")
20
  - SYSTEM_PROMPT (overrides the default RPG prompt below)
 
65
  MAX_TOKENS = int(os.getenv("MAX_TOKENS", "320"))
66
  TEMPERATURE = float(os.getenv("TEMPERATURE", "0.5"))
67
 
68
+ if not os.getenv("TableTopKey"):
69
+ raise RuntimeError("TableTopKey is not set. Add it in Space Settings → Secrets.")
70
 
71
+ client = OpenAI(api_key=os.environ["TableTopKey"])
72
 
73
  # -----------------
74
  # Rate limiting