retr0reg commited on
Security Fixs
Browse files- config.json +0 -25
- tool_config.json +7 -0
config.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_name_or_path": "bert-base-uncased",
|
| 3 |
-
"architectures": [
|
| 4 |
-
"BertModel"
|
| 5 |
-
],
|
| 6 |
-
"attention_probs_dropout_prob": 0.1,
|
| 7 |
-
"classifier_dropout": null,
|
| 8 |
-
"gradient_checkpointing": false,
|
| 9 |
-
"hidden_act": "gelu",
|
| 10 |
-
"hidden_dropout_prob": 0.1,
|
| 11 |
-
"hidden_size": 768,
|
| 12 |
-
"initializer_range": 0.02,
|
| 13 |
-
"intermediate_size": 3072,
|
| 14 |
-
"layer_norm_eps": 1e-12,
|
| 15 |
-
"max_position_embeddings": 512,
|
| 16 |
-
"model_type": "bert",
|
| 17 |
-
"num_attention_heads": 12,
|
| 18 |
-
"num_hidden_layers": 12,
|
| 19 |
-
"pad_token_id": 0,
|
| 20 |
-
"position_embedding_type": "absolute",
|
| 21 |
-
"transformers_version": "4.32.0",
|
| 22 |
-
"type_vocab_size": 2,
|
| 23 |
-
"use_cache": true,
|
| 24 |
-
"vocab_size": 30522
|
| 25 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tool_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"description": "This is a tool that creates an image according to a prompt, which is a text description. It takes an input named `prompt` which contains the image description and outputs an image.",
|
| 3 |
+
"name": "image_generator",
|
| 4 |
+
"tool_class": "text_to_image.TextToImageTool",
|
| 5 |
+
"inputs": {"prompt": "str"},
|
| 6 |
+
"output_type": "image"
|
| 7 |
+
}
|