-
-
Notifications
You must be signed in to change notification settings - Fork 849
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
Feat: Added Gradio support #812
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, I'll see if I can get this working locally and merge once I can validate. Thank you!
@Stillerman would you be able to run |
Yes I can do that by tomorrow morning |
src/axolotl/cli/__init__.py
Outdated
yield all_text | ||
|
||
demo = gr.Interface(fn=generate, inputs="text", outputs="text") | ||
demo.launch(show_api=False, share=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
demo.launch(show_api=False, share=True) | |
demo.queue().launch(show_api=False, share=True) |
Ran into this error: ValueError: Queue needs to be enabled! You may get this error by either 1) passing a function that uses the yield keyword into an interface without enabling the queue or 2) defining an event that cancels another event without enabling the queue. Both can be solved by calling .queue() before .launch()
, the above change seems to fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird that it didn't show up for me... Added it anyways and also a --gradio_title
param
* Added gradio support * queuing and title * pre-commit run
You can start public Gradio UI by passing
--gradio
to the inference CLI.Closes #228