Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Community tools #1250

Merged
merged 72 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
b1e6e1d
wip community tools
nsarrazin Jun 5, 2024
990155a
push
nsarrazin Jun 8, 2024
9f2ad3e
fix
nsarrazin Jun 8, 2024
5e561f7
bugfix
nsarrazin Jun 9, 2024
156cf8b
pass inputs to gradio correctly
nsarrazin Jun 9, 2024
cf750c9
full inputs for imagegen
nsarrazin Jun 9, 2024
3b215b9
lint
nsarrazin Jun 9, 2024
19792a1
update gradio
nsarrazin Jun 9, 2024
b121460
fix call to gradio
nsarrazin Jun 9, 2024
89d7b0f
fix imagegen tool
nsarrazin Jun 9, 2024
819f767
fix name
nsarrazin Jun 10, 2024
82c6cef
fix image display
nsarrazin Jun 10, 2024
be2bf57
Merge branch 'main' into feat/community_tools
nsarrazin Jun 10, 2024
75e3c83
Community tools (#1297)
nsarrazin Jul 1, 2024
c90c7c9
working community tools
nsarrazin Jul 2, 2024
4211243
fix active featured check
nsarrazin Jul 2, 2024
2e10321
Simplify outputs in user form
nsarrazin Jul 3, 2024
80521fd
fix non file outputs
nsarrazin Jul 3, 2024
7f34185
fix imagegen default tool
nsarrazin Jul 3, 2024
2977f77
add community tools popup
nsarrazin Jul 3, 2024
d70a925
redirect gradio API calls through chat-ui backend
nsarrazin Jul 3, 2024
3c274f6
better usecount
nsarrazin Jul 3, 2024
1aa1073
Better loading & output element
nsarrazin Jul 3, 2024
47e665b
better redirects & auto activate
nsarrazin Jul 3, 2024
8878abe
bugfixes
nsarrazin Jul 4, 2024
67d616a
Merge branch 'main' into feat/community_tools
nsarrazin Jul 24, 2024
298efac
fix migration changes
nsarrazin Jul 25, 2024
86b2b3e
Merge branch 'main' into feat/community_tools
nsarrazin Jul 25, 2024
8d8392c
Merge branch 'main' into feat/community_tools
nsarrazin Jul 29, 2024
67e403b
Add feature flag for tools
nsarrazin Jul 29, 2024
9c73aa5
fix tools menu
nsarrazin Jul 29, 2024
4da9293
Keep track of output component index
nsarrazin Jul 30, 2024
99a2822
fix null check
nsarrazin Jul 30, 2024
c003582
catch error for spaces config
nsarrazin Jul 30, 2024
1a148e8
wip: MIME types
nsarrazin Jul 30, 2024
245e779
Merge branch 'main' into feat/community_tools
nsarrazin Jul 30, 2024
3060612
wip: rework tools to use filenames
nsarrazin Jul 30, 2024
6d44b2d
Merge branch 'main' into feat/community_tools
nsarrazin Jul 30, 2024
4b6ea77
fix broken tool calling
nsarrazin Jul 30, 2024
6ecd91b
fix input tools
nsarrazin Jul 30, 2024
5d5055f
Working files
nsarrazin Jul 30, 2024
c89c9e5
fix(form): bind on name
nsarrazin Jul 30, 2024
0be4244
fix(prompt): double system prompt
nsarrazin Jul 30, 2024
0f84dd2
fix(prompt): file list
nsarrazin Jul 30, 2024
0f8a160
fix(tools): make sure tools are off by default
nsarrazin Jul 30, 2024
164740b
Add description to ToolEdit
nsarrazin Jul 30, 2024
a04fdb3
Display runs
nsarrazin Jul 30, 2024
7b72352
feat(tools): add back document parser
nsarrazin Jul 31, 2024
4e3bc42
feat(tools): bring back image editing tool
nsarrazin Jul 31, 2024
da4faf5
fix MIME types
nsarrazin Jul 31, 2024
f8867d2
Fix file passing prompts
nsarrazin Jul 31, 2024
1eeb11c
Merge branch 'main' into feat/community_tools
nsarrazin Jul 31, 2024
5ab26ea
fix lint
nsarrazin Jul 31, 2024
87fdd09
Set tools to default in migration
nsarrazin Jul 31, 2024
f5227a6
Revert "Set tools to default in migration"
nsarrazin Jul 31, 2024
ba054e7
Use correct space for official image generation
nsarrazin Jul 31, 2024
9e9a005
Remove debug logs
nsarrazin Jul 31, 2024
329fc49
fix(redirect): working redirect when no `APP_BASE`
nsarrazin Aug 2, 2024
11f600e
Merge branch 'main' into feat/community_tools
nsarrazin Aug 8, 2024
cc72cd2
sveltekit 2 migration
nsarrazin Aug 8, 2024
fc21749
fix types with gradio update
nsarrazin Aug 8, 2024
634105e
fix name based searching
nsarrazin Aug 8, 2024
effd7f2
fix cut titles
nsarrazin Aug 8, 2024
2f3a80e
add min & max
nsarrazin Aug 8, 2024
c428d51
add error if no endpoint
nsarrazin Aug 8, 2024
a556726
make form not submittable until it's filled
nsarrazin Aug 8, 2024
eb4ef83
fix return
nsarrazin Aug 8, 2024
2c5559d
Better support for varied input types
nsarrazin Aug 9, 2024
28c38e9
fix(update): hide null values for params that have not been called ex…
nsarrazin Aug 11, 2024
b6f5e2b
Merge branch 'main' into feat/community_tools
nsarrazin Aug 12, 2024
9b014c3
add extra migration for transition
nsarrazin Aug 12, 2024
1f3f08d
fix document parser mime types
nsarrazin Aug 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ ALLOW_INSECURE_COOKIES=false # recommended to keep this to false but set to true
METRICS_ENABLED=false
METRICS_PORT=5565
LOG_LEVEL=info


TOOLS=`[]`
BODY_SIZE_LIMIT=15728640

HF_ORG_ADMIN=
Expand Down
145 changes: 145 additions & 0 deletions chart/env/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,151 @@ envVars:
}]
WEBSEARCH_BLOCKLIST: '["youtube.com", "twitter.com"]'
XFF_DEPTH: '2'
TOOLS: >
[
{
"_id": "000000000000000000000001",
"displayName": "Image Generation",
"description": "Use this tool to generate images based on a prompt.",
"color": "yellow",
"icon": "camera",
"baseUrl": "stabilityai/stable-diffusion-3-medium",
"name": "image_generation",
"endpoint": "/infer",
"inputs": [
{
"name": "prompt",
"description": "A prompt to generate an image from",
"paramType": "required",
"type": "str"
},
{
"name": "negative_prompt",
"description": "A prompt for things that should not be in the image.",
"paramType": "optional",
"default": "",
"type": "str"
},
{
"name": "seed",
"paramType": "fixed",
"value": "0",
"type": "float"
},
{
"name": "randomize_seed",
"paramType": "fixed",
"value": "true",
"type": "bool"
},
{
"name": "width",
"description": "numeric value between 256 and 1344",
"paramType": "optional",
"default": 1024,
"type": "float"
},
{
"name": "height",
"description": "numeric value between 256 and 1344",
"paramType": "optional",
"default": 1024,
"type": "float"
},
{
"name": "guidance_scale",
"description": "numeric value between 0.0 and 10.0",
"paramType": "optional",
"default": 5,
"type": "float"
},
{
"name": "num_inference_steps",
"description": "numeric value between 1 and 50",
"paramType": "optional",
"default": 28,
"type": "float"
}
],
"outputComponent": "image",
"outputComponentIdx": 0,
"showOutput": true
},
{
"_id": "000000000000000000000002",
"displayName": "Document parser",
"description": "Use this tool to parse any document and get its content in markdown format.",
"color": "yellow",
"icon": "cloud",
"baseUrl": "huggingchat/document-parser",
"name": "document_parser",
"endpoint": "/predict",
"inputs": [
{
"name": "document",
"description": "Filename of the document to parse",
"paramType": "required",
"type": "file",
"mimeTypes": 'application/*'
},
{
"name": "filename",
"paramType": "fixed",
"value": "document.pdf",
"type": "str"
}
],
"outputComponent": "textbox",
"outputComponentIdx": 0,
"showOutput": false
},
{
"_id": "000000000000000000000003",
"name": "edit_image",
"baseUrl": "multimodalart/cosxl",
"endpoint": "/run_edit",
"inputs": [
{
"name": "image",
"description": "The image path to be edited",
"paramType": "required",
"type": "file",
"mimeTypes": 'image/*'
},
{
"name": "prompt",
"description": "The prompt with which to edit the image",
"paramType": "required",
"type": "str"
},
{
"name": "negative_prompt",
"paramType": "fixed",
"value": "",
"type": "str"
},
{
"name": "guidance_scale",
"paramType": "fixed",
"value": 6.5,
"type": "float"
},
{
"name": "steps",
"paramType": "fixed",
"value": 30,
"type": "float"
}
],
"outputComponent": "image",
"showOutput": true,
"displayName": "Image editor",
"color": "green",
"icon": "camera",
"description": "This tool lets you edit images",
"outputComponentIdx": 0
}
]
HF_ORG_ADMIN: 'huggingchat'
HF_ORG_EARLY_ACCESS: 'huggingface'

Expand Down
Loading
Loading