fedeortegariba commited on
Commit
c86cbe0
·
verified ·
1 Parent(s): dc2cc84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,8 +21,8 @@ def my_custom_tool(sentence:str)-> str: #it's import to specify the return type
21
  doc = nlp(sentence)
22
 
23
  for token in doc:
24
- if token.dep_ in ("nsubj", "nsubjpass"):
25
- return f"Subject: {token.text}"
26
 
27
 
28
  @tool
 
21
  doc = nlp(sentence)
22
 
23
  for token in doc:
24
+ if token.dep_ in ("nsubj", "nsubjpass"):
25
+ return f"Subject: {token.text}"
26
 
27
 
28
  @tool