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

Download Button [4/n]: Make this enabled for read-only mode #1071

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Conversation

rossdanlm
Copy link
Contributor

@rossdanlm rossdanlm commented Jan 30, 2024

Download Button [4/n]: Make this enabled for read-only mode

I realized that after I moved readOnly check on entire group in #1032, I need to be able to still have the Download button for read-only mode so user can still download the AIConfig. We just need to make sure to define this endpoint in the lastMile repo

Test Plan

Rebase onto #1045

Go to aiconfig/python/src/aiconfig/editor/client and run this command:

rm -rf node_modules && yarn && yarn build

Then go to aiconfig dir and run this command:

aiconfig_path=./cookbooks/Gradio/huggingface.aiconfig.json
parsers_path=./cookbooks/Gradio/hf_model_parsers.py
aiconfig edit --aiconfig-path=$aiconfig_path --server-port=8080 --server-mode=debug_servers --parsers-module-path=$parsers_path

readOnly is true

Screenshot 2024-01-30 at 00 45 03

readOnly is false

Screenshot 2024-01-30 at 00 44 36

Copy link
Contributor

@rholinshead rholinshead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor things but will save us from needing another PR in the future for the share button

I realized that after I moved `readOnly` check on entire group in #1032, I need to be able to still have the Download button for read-only mode so user can still download the AIConfig. We just need to make sure to define this endpoint in the lastMile repo

## Test Plan
Rebase onto #1045

Go to `aiconfig/python/src/aiconfig/editor/client` and run this command:
```
rm -rf node_modules && yarn && yarn build
```

Then go to `aiconfig` dir and run this command:
```
aiconfig_path=./cookbooks/Gradio/huggingface.aiconfig.json
parsers_path=./cookbooks/Gradio/hf_model_parsers.py
aiconfig edit --aiconfig-path=$aiconfig_path --server-port=8080 --server-mode=debug_servers --parsers-module-path=$parsers_path
```

readOnly is true

<img width="1920" alt="Screenshot 2024-01-30 at 00 45 03" src="https://github.com/lastmile-ai/aiconfig/assets/151060367/356cd898-e3f2-430c-8153-a464b78a254b">

readOnly is false

<img width="1920" alt="Screenshot 2024-01-30 at 00 44 36" src="https://github.com/lastmile-ai/aiconfig/assets/151060367/d14ec7ee-8a10-49f1-b9d8-d4a5a2153b99">
@rossdanlm rossdanlm merged commit 0d3e946 into main Jan 30, 2024
2 checks passed
@rossdanlm rossdanlm deleted the pr1071 branch January 30, 2024 18:29
rossdanlm added a commit that referenced this pull request Jan 30, 2024
…e() call (#1078)

[fix] Update model parsers to config runtime on AIConfigRuntime.create()
call

Pretty good bug fix. If we define a model + model parser in a config and
create it using `create()` instead of `load()` then this fails

---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/1078).
* __->__ #1078
* #1071
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants