Spaces:
Running
Running
Update text_generator.py
Browse files- 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 =
|
11 |
-
outputs =
|
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 = {
|