jefmon01 commited on
Commit
3c3918d
·
1 Parent(s): e93c144

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)
@@ -57,10 +57,10 @@ GLOBAL_RPM_SOFT = int(os.getenv("GLOBAL_RPM_SOFT", "350")) # soft limit; app se
57
  MAX_TOKENS = int(os.getenv("MAX_TOKENS", "320"))
58
  TEMPERATURE = float(os.getenv("TEMPERATURE", "0.5"))
59
 
60
- if not os.getenv("OPENAI_API_KEY"):
61
- raise RuntimeError("OPENAI_API_KEY is not set. Add it in Space Settings → Secrets.")
62
 
63
- client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
64
 
65
  # -----------------
66
  # 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)
 
57
  MAX_TOKENS = int(os.getenv("MAX_TOKENS", "320"))
58
  TEMPERATURE = float(os.getenv("TEMPERATURE", "0.5"))
59
 
60
+ if not os.getenv("TableTopKey"):
61
+ raise RuntimeError("TableTopKey is not set. Add it in Space Settings → Secrets.")
62
 
63
+ client = OpenAI(api_key=os.environ["TableTopKey"])
64
 
65
  # -----------------
66
  # Rate limiting