refactor: cleanup

This commit is contained in:
Florian Hönicke
2023-04-06 15:46:47 +02:00
parent 24f4c49f36
commit a8e177b1de
2 changed files with 13 additions and 6 deletions

View File

@@ -59,7 +59,9 @@ graph TB
gptdeploy --description "Generate a QR code from a given text or URL" --test "https://www.example.com" gptdeploy --description "Generate a QR code from a given text or URL" --test "https://www.example.com"
``` ```
![](res/qr_example.png) ![](res/qr_example.png)
```bash
gptdeploy --description "Extract information about a 3D model, such as vertex count and face count" --test "https://www.example.com/model.obj"
```
# 🤏 limitations for now # 🤏 limitations for now
- stateless microservices only - stateless microservices only
@@ -69,7 +71,12 @@ gptdeploy --description "Generate a QR code from a given text or URL" --test "ht
Use natural language interface to create, deploy and update your microservice infrastructure. Use natural language interface to create, deploy and update your microservice infrastructure.
# TODO # TODO
- [ ] verbose mode critical
- [ ] auto login for jina - [ ] auto login for jina
Nice to have
- [ ] verbose mode
- [ ] tests
- [ ] clean up duplicate code
[//]: # ([![Watch the video](https://i.imgur.com/vKb2F1B.png)](https://user-images.githubusercontent.com/11627845/226220484-17810f7c-b184-4a03-9af2-3a977fbb014b.mov)) [//]: # ([![Watch the video](https://i.imgur.com/vKb2F1B.png)](https://user-images.githubusercontent.com/11627845/226220484-17810f7c-b184-4a03-9af2-3a977fbb014b.mov))

View File

@@ -293,13 +293,13 @@ def main(
generated_name = generate_executor_name(description) generated_name = generate_executor_name(description)
executor_name = f'{generated_name}{random.randint(0, 1000_000)}' executor_name = f'{generated_name}{random.randint(0, 1000_000)}'
packages = get_possible_packages(description, num_approaches) packages_list = get_possible_packages(description, num_approaches)
recreate_folder(output_path) recreate_folder(output_path)
for package in packages: for packages in packages_list:
try: try:
create_executor(description, test, output_path, executor_name, package) create_executor(description, test, output_path, executor_name, packages)
# executor_name = 'MicroChainExecutor790050' # executor_name = 'MicroChainExecutor790050'
executor_path = debug_executor(output_path, package, description, test) executor_path = debug_executor(output_path, packages, description, test)
# print('Executor can be built locally, now we will push it to the cloud.') # print('Executor can be built locally, now we will push it to the cloud.')
# jina_cloud.push_executor(executor_path) # jina_cloud.push_executor(executor_path)
print('Deploy a jina flow') print('Deploy a jina flow')