Spaces:
Runtime error
Runtime error
khaiphan29
commited on
Commit
•
ed22e94
1
Parent(s):
73df029
Upload folder using huggingface_hub
Browse files- main.py +1 -0
- src/myNLI.py +1 -0
main.py
CHANGED
@@ -16,6 +16,7 @@ import time
|
|
16 |
from src.myNLI import FactChecker
|
17 |
from src.crawler import MyCrawler
|
18 |
|
|
|
19 |
#request body
|
20 |
class Claim(BaseModel):
|
21 |
claim: str
|
|
|
16 |
from src.myNLI import FactChecker
|
17 |
from src.crawler import MyCrawler
|
18 |
|
19 |
+
|
20 |
#request body
|
21 |
class Claim(BaseModel):
|
22 |
claim: str
|
src/myNLI.py
CHANGED
@@ -18,6 +18,7 @@ class FactChecker:
|
|
18 |
|
19 |
@timer_func
|
20 |
def __init__(self):
|
|
|
21 |
self.INPUT_TYPE = "mean"
|
22 |
self.load_model()
|
23 |
|
|
|
18 |
|
19 |
@timer_func
|
20 |
def __init__(self):
|
21 |
+
nltk.download('punkt')
|
22 |
self.INPUT_TYPE = "mean"
|
23 |
self.load_model()
|
24 |
|