Chris4K commited on
Commit
bcb1873
1 Parent(s): 91de735

Update random_charactor_generator.py

Browse files
Files changed (1) hide show
  1. random_charactor_generator.py +2 -2
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 based on an input."
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