Spaces:
Running
Running
Update .env.local.template
Browse files- .env.local.template +54 -1
.env.local.template
CHANGED
@@ -8,7 +8,7 @@ MONGODB_DIRECT_CONNECTION=false
|
|
8 |
|
9 |
COOKIE_NAME=chat-ui
|
10 |
HF_ACCESS_TOKEN=#hf_<token> from from https://huggingface.co/settings/token
|
11 |
-
|
12 |
# used to activate search with web functionality. disabled if not defined
|
13 |
SERPAPI_KEY=#your serpapi key here
|
14 |
|
@@ -38,6 +38,59 @@ TOOLS=`[
|
|
38 |
],
|
39 |
"_id": "5f2c1b9d8a9a4d3b6a7f9e2c",
|
40 |
"showOutput": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
]`
|
43 |
|
|
|
8 |
|
9 |
COOKIE_NAME=chat-ui
|
10 |
HF_ACCESS_TOKEN=#hf_<token> from from https://huggingface.co/settings/token
|
11 |
+
HF_TOKEN=${HF_TOKEN}
|
12 |
# used to activate search with web functionality. disabled if not defined
|
13 |
SERPAPI_KEY=#your serpapi key here
|
14 |
|
|
|
38 |
],
|
39 |
"_id": "5f2c1b9d8a9a4d3b6a7f9e2c",
|
40 |
"showOutput": true
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"name": "generate_image",
|
44 |
+
"description": "Use this tool to generate images based on a prompt.",
|
45 |
+
"color": "yellow",
|
46 |
+
"icon": "camera",
|
47 |
+
"baseUrl": "BSC-LT/FLUX.1-schnell",
|
48 |
+
"endpoint": "/infer",
|
49 |
+
"outputComponent": "image",
|
50 |
+
"displayName":"Image Generation",
|
51 |
+
"outputComponentIdx": 0,
|
52 |
+
"inputs":[
|
53 |
+
{
|
54 |
+
name: 'prompt',
|
55 |
+
description: 'Prompt to generate the image',
|
56 |
+
paramType: 'required',
|
57 |
+
type: 'str'
|
58 |
+
},
|
59 |
+
{
|
60 |
+
name: 'seed',
|
61 |
+
paramType: 'fixed',
|
62 |
+
value: '0',
|
63 |
+
type: 'float'
|
64 |
+
},
|
65 |
+
{
|
66 |
+
name: 'randomize_seed',
|
67 |
+
paramType: 'fixed',
|
68 |
+
value: 'true',
|
69 |
+
type: 'bool'
|
70 |
+
},
|
71 |
+
{
|
72 |
+
name: 'width',
|
73 |
+
description: 'numeric value between 256 and 2048',
|
74 |
+
paramType: 'optional',
|
75 |
+
default: '1024',
|
76 |
+
type: 'float'
|
77 |
+
},
|
78 |
+
{
|
79 |
+
name: 'height',
|
80 |
+
description: 'numeric value between 256 and 2048',
|
81 |
+
paramType: 'optional',
|
82 |
+
default: '1024',
|
83 |
+
type: 'float'
|
84 |
+
},
|
85 |
+
{
|
86 |
+
name: 'num_inference_steps',
|
87 |
+
paramType: 'fixed',
|
88 |
+
value: '4',
|
89 |
+
type: 'float'
|
90 |
+
}
|
91 |
+
],
|
92 |
+
"_id": "5f2c1b9d8a9a4d3b6a7f9e2d",
|
93 |
+
"showOutput": true
|
94 |
}
|
95 |
]`
|
96 |
|