Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def extract_text_from_url(url):
|
|
42 |
def extract_entities_and_relationships(text):
|
43 |
"""Use Mistral to extract entities and relationships from text."""
|
44 |
|
45 |
-
if not
|
46 |
return {
|
47 |
"entities": [],
|
48 |
"relationships": [],
|
|
|
42 |
def extract_entities_and_relationships(text):
|
43 |
"""Use Mistral to extract entities and relationships from text."""
|
44 |
|
45 |
+
if not os.environ.get("HF_TOKEN"):
|
46 |
return {
|
47 |
"entities": [],
|
48 |
"relationships": [],
|