Spaces:
Sleeping
Sleeping
Vel
commited on
Runtime Error correction
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ sentiment_analyzer = pipeline("sentiment-analysis", model="distilbert-base-uncas
|
|
| 18 |
topic_classifier = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")
|
| 19 |
|
| 20 |
@tool
|
| 21 |
-
def my_custom_tool(x_username: str,
|
| 22 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 23 |
"""A tool that creates a fictional psychological portrait based on an X user's recent activity using Hugging Face tools.
|
| 24 |
Args:
|
|
|
|
| 18 |
topic_classifier = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")
|
| 19 |
|
| 20 |
@tool
|
| 21 |
+
def my_custom_tool(x_username: str, days_in_the_past:int)-> str: #it's import to specify the return type
|
| 22 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 23 |
"""A tool that creates a fictional psychological portrait based on an X user's recent activity using Hugging Face tools.
|
| 24 |
Args:
|