Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,6 +14,9 @@ import gradio as gr
|
|
| 14 |
import nltk
|
| 15 |
import torch
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
from pdf2text import *
|
| 18 |
|
| 19 |
_here = Path(__file__).parent
|
|
|
|
| 14 |
import nltk
|
| 15 |
import torch
|
| 16 |
|
| 17 |
+
if not is_installed("pydantic", "1.10.2"):
|
| 18 |
+
install_commands.append("pip install pydantic==1.10.2")
|
| 19 |
+
|
| 20 |
from pdf2text import *
|
| 21 |
|
| 22 |
_here = Path(__file__).parent
|