Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -250,13 +250,6 @@ with gr.Blocks(css=MODEL_SELECTION_CSS, theme='gradio/soft') as demo:
|
|
| 250 |
"[LLaMA2-70B](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf) which is hosted as [Hugging Face Inference API](https://huggingface.co/inference-api), "
|
| 251 |
"and [Text Generation Inference](https://github.com/huggingface/text-generation-inference) is the underlying serving framework. "
|
| 252 |
)
|
| 253 |
-
gr.Markdown(
|
| 254 |
-
"***NOTE:*** If you are subscribing [PRO](https://huggingface.co/pricing#pro), you can simply duplicate this space and use your "
|
| 255 |
-
"Hugging Face Access Token to run the same application. Just add `HF_TOKEN` secret with the Token value accorindg to [this guide]"
|
| 256 |
-
"(https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables). Also, if you want to enable internet search "
|
| 257 |
-
"capability in your private space, please specify `SERPER_API_KEY` secret after getting one from [serper.dev](https://serper.dev/)."
|
| 258 |
-
)
|
| 259 |
-
|
| 260 |
|
| 261 |
with gr.Row():
|
| 262 |
with gr.Column(scale=1, min_width=180):
|
|
@@ -360,6 +353,18 @@ with gr.Blocks(css=MODEL_SELECTION_CSS, theme='gradio/soft') as demo:
|
|
| 360 |
with gr.Row():
|
| 361 |
ctx_num_lconv = gr.Slider(2, 10, 3, step=1, label="number of recent talks to keep", interactive=True)
|
| 362 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 363 |
send_event = instruction_txtbox.submit(
|
| 364 |
lambda: [
|
| 365 |
gr.update(visible=False),
|
|
|
|
| 250 |
"[LLaMA2-70B](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf) which is hosted as [Hugging Face Inference API](https://huggingface.co/inference-api), "
|
| 251 |
"and [Text Generation Inference](https://github.com/huggingface/text-generation-inference) is the underlying serving framework. "
|
| 252 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 253 |
|
| 254 |
with gr.Row():
|
| 255 |
with gr.Column(scale=1, min_width=180):
|
|
|
|
| 353 |
with gr.Row():
|
| 354 |
ctx_num_lconv = gr.Slider(2, 10, 3, step=1, label="number of recent talks to keep", interactive=True)
|
| 355 |
|
| 356 |
+
gr.Markdown(
|
| 357 |
+
"***NOTE:*** If you are subscribing [PRO](https://huggingface.co/pricing#pro), you can simply duplicate this space and use your "
|
| 358 |
+
"Hugging Face Access Token to run the same application. Just add `HF_TOKEN` secret with the Token value accorindg to [this guide]"
|
| 359 |
+
"(https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables). Also, if you want to enable internet search "
|
| 360 |
+
"capability in your private space, please specify `SERPER_API_KEY` secret after getting one from [serper.dev](https://serper.dev/)."
|
| 361 |
+
)
|
| 362 |
+
|
| 363 |
+
gr.Markdown(
|
| 364 |
+
"***NOTE:*** If you want to run more extended version of this application, check out [LLM As Chatbot](https://github.com/deep-diver/LLM-As-Chatbot) "
|
| 365 |
+
"project. This project lets you choose a model among various Open Source LLMs including LLaMA2 variations, and others more than 50."
|
| 366 |
+
)
|
| 367 |
+
|
| 368 |
send_event = instruction_txtbox.submit(
|
| 369 |
lambda: [
|
| 370 |
gr.update(visible=False),
|