Spaces:
Build error
Build error
update app.py
Browse files
app.py
CHANGED
|
@@ -32,8 +32,8 @@ def main():
|
|
| 32 |
tokenizer = DistilBertTokenizer.from_pretrained(model_name)
|
| 33 |
model = DistilBertForQuestionAnswering.from_pretrained(model_name)
|
| 34 |
|
| 35 |
-
# Read the context from the text file
|
| 36 |
-
with open("context.txt", "r"
|
| 37 |
context = file.read()
|
| 38 |
|
| 39 |
if text:
|
|
|
|
| 32 |
tokenizer = DistilBertTokenizer.from_pretrained(model_name)
|
| 33 |
model = DistilBertForQuestionAnswering.from_pretrained(model_name)
|
| 34 |
|
| 35 |
+
# Read the context from the text file
|
| 36 |
+
with open("context.txt", "r") as file:
|
| 37 |
context = file.read()
|
| 38 |
|
| 39 |
if text:
|