Chris4K commited on
Commit
1f192bf
·
verified ·
1 Parent(s): 2c2fb5c

Update text_generator.py

Browse files
Files changed (1) hide show
  1. text_generator.py +2 -2
text_generator.py CHANGED
@@ -7,8 +7,8 @@ class TextGenerationTool(Tool):
7
  name = "text_generator"
8
  description = "This is a tool for text generation. It takes a prompt as input and returns the generated text."
9
 
10
- inputs = ["text"]
11
- outputs = ["text"]
12
 
13
  # Available text generation models
14
  models = {
 
7
  name = "text_generator"
8
  description = "This is a tool for text generation. It takes a prompt as input and returns the generated text."
9
 
10
+ inputs = {"text": {"type": "text", "description": "The prompt for text generation"}}
11
+ outputs = {"text": {"type": "text", "description": "The generated text"}}
12
 
13
  # Available text generation models
14
  models = {