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

Use variables [generate_params and server_name] in generate.py #393

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pandermatt
Copy link

@pandermatt pandermatt commented Apr 26, 2023

It looks like generate_params are duplicated, so i used the variable

image

It looks like `generate_params` are duplicated, so i used the variable
@pandermatt pandermatt changed the title Fix generate.py Use generate_params in generate.py Apr 26, 2023
@pandermatt pandermatt changed the title Use generate_params in generate.py Use variables [generate_params and server_name] in generate.py Apr 26, 2023
@@ -192,7 +186,7 @@ def generate_with_streaming(**kwargs):
],
title="🦙🌲 Alpaca-LoRA",
description="Alpaca-LoRA is a 7B-parameter LLaMA model finetuned to follow instructions. It is trained on the [Stanford Alpaca](https://github.com/tatsu-lab/stanford_alpaca) dataset and makes use of the Huggingface LLaMA implementation. For more information, please visit [the project's website](https://github.com/tloen/alpaca-lora).", # noqa: E501
).queue().launch(server_name="0.0.0.0", share=share_gradio)
).queue().launch(server_name=server_name, share=share_gradio)
Copy link
Author

Choose a reason for hiding this comment

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

image
we can use the variable from the parameter

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