awacke1 commited on
Commit
ee3012b
·
1 Parent(s): ca0bd48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,10 +7,10 @@ with open('Context.txt', 'r') as file:
7
  context = file.read()
8
 
9
  question = "What should be documented in a care plan?"
10
- HF_TOKEN = "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"
 
11
  gr.Interface.load(
12
  "huggingface/deepset/roberta-base-squad2",
13
-
14
  api_key=HF_TOKEN,
15
  theme="default",
16
  css=".footer{display:none !important}",
 
7
  context = file.read()
8
 
9
  question = "What should be documented in a care plan?"
10
+ HF_TOKEN = os.environ.get("HF_TOKEN")
11
+
12
  gr.Interface.load(
13
  "huggingface/deepset/roberta-base-squad2",
 
14
  api_key=HF_TOKEN,
15
  theme="default",
16
  css=".footer{display:none !important}",