Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = "
|
|
|
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}",
|