mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-21 07:34:20 +01:00
fix: tags example was wrong
This commit is contained in:
@@ -9,6 +9,7 @@ To ensure the executor accurately aligns with your intended task, you can also p
|
|||||||
## install
|
## install
|
||||||
```bash
|
```bash
|
||||||
pip install gptdeploy
|
pip install gptdeploy
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## run
|
## run
|
||||||
@@ -82,6 +83,7 @@ critical
|
|||||||
- [ ] fix problem with package installation
|
- [ ] fix problem with package installation
|
||||||
- [ ] add more interesting examples to README.md
|
- [ ] add more interesting examples to README.md
|
||||||
- [ ] api key in install instruction
|
- [ ] api key in install instruction
|
||||||
|
- [ ] add instruction about cleanup of deployments
|
||||||
|
|
||||||
Nice to have
|
Nice to have
|
||||||
- [ ] hide prompts in normal mode and show them in verbose mode
|
- [ ] hide prompts in normal mode and show them in verbose mode
|
||||||
@@ -89,6 +91,7 @@ Nice to have
|
|||||||
- [ ] clean up duplicate code
|
- [ ] clean up duplicate code
|
||||||
- [ ] support popular cloud providers
|
- [ ] support popular cloud providers
|
||||||
- [ ] support local docker builds
|
- [ ] support local docker builds
|
||||||
|
- [ ] autoscaling enabled for cost saving
|
||||||
|
|
||||||
|
|
||||||
[//]: # ([](https://user-images.githubusercontent.com/11627845/226220484-17810f7c-b184-4a03-9af2-3a977fbb014b.mov))
|
[//]: # ([](https://user-images.githubusercontent.com/11627845/226220484-17810f7c-b184-4a03-9af2-3a977fbb014b.mov))
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ class MyInfoExecutor(Executor):
|
|||||||
def foo(self, docs: DocumentArray, **kwargs) => DocumentArray:
|
def foo(self, docs: DocumentArray, **kwargs) => DocumentArray:
|
||||||
for d in docs:
|
for d in docs:
|
||||||
d.load_uri_to_blob()
|
d.load_uri_to_blob()
|
||||||
d.tags['my_info'] = {'byte_length': len(d.blob)} # tags can only be a flat dictionary where keys are strings and values are strings, ints, floats, or bools
|
d.tags['byte_length'] = len(d.blob) # tags must be a flat dictionary where keys are strings and values are strings, ints, floats, or bools
|
||||||
|
d.tags['radius'] = 'large'
|
||||||
d.blob = None
|
d.blob = None
|
||||||
return docs
|
return docs
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user