Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import re
|
3 |
from pypdf import PdfReader
|
4 |
from transformers import AutoTokenizer, AutoModelForQuestionAnswering, pipeline
|
5 |
-
|
6 |
|
7 |
def remove_references(text):
|
8 |
text = re.sub(r'\[\d+\]', '', text) ##[ref]
|
|
|
2 |
import re
|
3 |
from pypdf import PdfReader
|
4 |
from transformers import AutoTokenizer, AutoModelForQuestionAnswering, pipeline
|
5 |
+
import docx
|
6 |
|
7 |
def remove_references(text):
|
8 |
text = re.sub(r'\[\d+\]', '', text) ##[ref]
|