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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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:", token.text
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