Spaces:
Sleeping
Sleeping
Commit
·
b9d31cc
1
Parent(s):
a0234ff
install first
Browse files
app.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
import re
|
| 2 |
import gradio as gr
|
| 3 |
from collections import defaultdict
|
| 4 |
-
from ai4data import extract_from_text, deduplicate_mentions
|
| 5 |
import html
|
| 6 |
from typing import List
|
| 7 |
|
|
@@ -20,6 +19,8 @@ if GH_TOKEN:
|
|
| 20 |
else:
|
| 21 |
print("GH_TOKEN not found. Private ai4data_use will NOT be installed.")
|
| 22 |
|
|
|
|
|
|
|
| 23 |
DATA_MODEL_ID = "rafmacalaba/datause-extraction-v3-finetuned"
|
| 24 |
|
| 25 |
def tokenize_text(text: str) -> List[str]:
|
|
|
|
| 1 |
import re
|
| 2 |
import gradio as gr
|
| 3 |
from collections import defaultdict
|
|
|
|
| 4 |
import html
|
| 5 |
from typing import List
|
| 6 |
|
|
|
|
| 19 |
else:
|
| 20 |
print("GH_TOKEN not found. Private ai4data_use will NOT be installed.")
|
| 21 |
|
| 22 |
+
from ai4data import extract_from_text, deduplicate_mentions
|
| 23 |
+
|
| 24 |
DATA_MODEL_ID = "rafmacalaba/datause-extraction-v3-finetuned"
|
| 25 |
|
| 26 |
def tokenize_text(text: str) -> List[str]:
|