Spaces:
Sleeping
Sleeping
app.py Beta 2 (Push 5)
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ class CombinedResponse(BaseModel):
|
|
57 |
|
58 |
# Helper Functions
|
59 |
def extract_keywords(text: str) -> List[str]:
|
60 |
-
doc
|
61 |
keywords = [token.text for token in doc if token.pos_ in ["NOUN", "PROPN"]]
|
62 |
return list(set(keywords))
|
63 |
|
|
|
57 |
|
58 |
# Helper Functions
|
59 |
def extract_keywords(text: str) -> List[str]:
|
60 |
+
doc = nlp(text) # Fixed syntax error here
|
61 |
keywords = [token.text for token in doc if token.pos_ in ["NOUN", "PROPN"]]
|
62 |
return list(set(keywords))
|
63 |
|