Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def my_custom_tool(sentence:str)-> str: #it's import to specify the return type
|
|
| 22 |
|
| 23 |
for token in doc:
|
| 24 |
if token.dep_ in ("nsubj", "nsubjpass"):
|
| 25 |
-
return "Subject:
|
| 26 |
|
| 27 |
|
| 28 |
@tool
|
|
|
|
| 22 |
|
| 23 |
for token in doc:
|
| 24 |
if token.dep_ in ("nsubj", "nsubjpass"):
|
| 25 |
+
return f"Subject: {token.text}"
|
| 26 |
|
| 27 |
|
| 28 |
@tool
|