cl2400 commited on
Commit
359752f
·
1 Parent(s): 9238103
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -3,13 +3,11 @@ import os
3
 
4
 
5
  hf_token = os.getenv("HF_TOKEN")
6
- if hf_token:
7
- demo = gr.Interface.load(
8
- "huggingface/cl2400/LLM-Agent-Beer-Game-Simulator",
9
- hf_token=hf_token
10
- )
11
- else:
12
- demo = gr.Interface.load("huggingface/cl2400/LLM-Agent-Beer-Game-Simulator")
13
 
14
  # demo.title = "Beer Game Simulation"
15
  # demo.description = "Interactive beer game simulation for supply chain management learning."
 
3
 
4
 
5
  hf_token = os.getenv("HF_TOKEN")
6
+ os.environ["HUGGINGFACE_HUB_TOKEN"] = hf_token
7
+
8
+ demo = gr.Interface.load(
9
+ "huggingface/cl2400/LLM-Agent-Beer-Game-Simulator"
10
+ )
 
 
11
 
12
  # demo.title = "Beer Game Simulation"
13
  # demo.description = "Interactive beer game simulation for supply chain management learning."