paascorb commited on
Commit
44fdc70
·
1 Parent(s): 982042c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def do_ask(question, button, dataset):
30
  docs_ready = dataset.iloc[-1, 0] != ""
31
  if button == "✨Listo✨" and docs_ready:
32
  path = dataset["filepath"]
33
- txt = Path(f'{path}.txt').read_text()
34
  question_answerer = pipeline("question-answering", model='distilbert-base-cased-distilled-squad')
35
  return question_answerer(question, context=text)
36
  else:
 
30
  docs_ready = dataset.iloc[-1, 0] != ""
31
  if button == "✨Listo✨" and docs_ready:
32
  path = dataset["filepath"]
33
+ txt = Path(f'{path}').read_text()
34
  question_answerer = pipeline("question-answering", model='distilbert-base-cased-distilled-squad')
35
  return question_answerer(question, context=text)
36
  else: