samarthagarwal23 commited on
Commit
bcbee82
·
1 Parent(s): dbd16a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,12 +1,13 @@
1
  import gradio as gr
2
  import os
3
 
4
- os.system("pip install pdfminer.six rank_bm25 transformers")
5
 
6
  from gradio.mix import Series
7
  import re
8
  from rank_bm25 import BM25Okapi
9
  import string
 
10
  from transformers import pipeline
11
  import pdfminer
12
  from pdfminer.high_level import extract_text
 
1
  import gradio as gr
2
  import os
3
 
4
+ os.system("pip install pdfminer.six rank_bm25 torch transformers")
5
 
6
  from gradio.mix import Series
7
  import re
8
  from rank_bm25 import BM25Okapi
9
  import string
10
+ import torch
11
  from transformers import pipeline
12
  import pdfminer
13
  from pdfminer.high_level import extract_text