Spaces:
Runtime error
Runtime error
Update random_charactor_generator.py
Browse files
random_charactor_generator.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import Tool
|
|
4 |
|
5 |
class RandomCharatorGeneratorTool(Tool):
|
6 |
name = "random_character"
|
7 |
-
description = "This tool generates a random character
|
8 |
|
9 |
inputs = ["text"] # Adding an empty list for inputs
|
10 |
|
@@ -34,7 +34,7 @@ class RandomCharatorGeneratorTool(Tool):
|
|
34 |
|
35 |
self.is_initialized = True
|
36 |
|
37 |
-
def __call__(self, input:str):
|
38 |
if not self.is_initialized:
|
39 |
self.setup()
|
40 |
|
|
|
4 |
|
5 |
class RandomCharatorGeneratorTool(Tool):
|
6 |
name = "random_character"
|
7 |
+
description = "This tool generates a random character. Returns json."
|
8 |
|
9 |
inputs = ["text"] # Adding an empty list for inputs
|
10 |
|
|
|
34 |
|
35 |
self.is_initialized = True
|
36 |
|
37 |
+
def __call__(self, input:str=""):
|
38 |
if not self.is_initialized:
|
39 |
self.setup()
|
40 |
|