## This demo app shows how to query Llama 2 using the Gradio UI.
Since we are using Replicate in this example, you will need to replace `` with your API token.
To get the Replicate token:
- You will need to first sign in with Replicate with your github account
- Then create a free API token [here](https://replicate.com/account/api-tokens) that you can use for a while
**Note** After the free trial ends, you will need to enter billing info to continue to use Llama2 hosted on Replicate.
To run this example:
- Set up your Replicate API token and enter it in place of ``
- Run the notebook
- Enter your question and click Submit
In the notebook or a browser with URL http://127.0.0.1:7860 you should see a UI with your answer.
Init param `input` is deprecated, please use `model_kwargs` instead.
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.