chansung commited on
Commit
dc40656
1 Parent(s): 58a9a0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -17
app.py CHANGED
@@ -246,14 +246,13 @@ with gr.Blocks(css=MODEL_SELECTION_CSS, theme='gradio/soft') as demo:
246
  })
247
  local_data = gr.JSON({}, visible=False)
248
 
249
- gr.Markdown("## LLaMA2 70B with Gradio Chat and Hugging Face Inference API", elem_classes=["center"])
250
  gr.Markdown(
251
  "This space demonstrates how to build feature rich chatbot UI in [Gradio](https://www.gradio.app/). Supported features "
252
  "include • multiple chatting channels, • chat history save/restoration, • stop generating text response, • regenerate the "
253
  "last conversation, • clean the chat history, • dynamic kick-starting prompt templates, • adjusting text generation parameters, "
254
- "• inspecting the actual prompt that the model sees. The underlying Large Language Model is the [Meta AI](https://ai.meta.com/)'s "
255
- "[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), "
256
- "and [Text Generation Inference](https://github.com/huggingface/text-generation-inference) is the underlying serving framework. "
257
  )
258
 
259
  with gr.Row():
@@ -355,20 +354,7 @@ with gr.Blocks(css=MODEL_SELECTION_CSS, theme='gradio/soft') as demo:
355
  gr.Markdown("#### Context managements")
356
  with gr.Row():
357
  ctx_num_lconv = gr.Slider(2, 10, 3, step=1, label="number of recent talks to keep", interactive=True)
358
-
359
- gr.Markdown(
360
- "***NOTE:*** If you are subscribing [PRO](https://huggingface.co/pricing#pro), you can simply duplicate this space and use your "
361
- "Hugging Face Access Token to run the same application. Just add `HF_TOKEN` secret with the Token value accorindg to [this guide]"
362
- "(https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables). Also, if you want to enable internet search "
363
- "capability in your private space, please specify `SERPER_API_KEY` secret after getting one from [serper.dev](https://serper.dev/)."
364
- )
365
 
366
- gr.Markdown(
367
- "***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) "
368
- "project. This project lets you choose a model among various Open Source LLMs including LLaMA2 variations, and others more than 50. Also, if you "
369
- "have any other further questions and considerations, please [contact me](https://twitter.com/algo_diver)"
370
- )
371
-
372
  send_event = instruction_txtbox.submit(
373
  lambda: [
374
  gr.update(visible=False),
 
246
  })
247
  local_data = gr.JSON({}, visible=False)
248
 
249
+ gr.Markdown("## PaLKM2 API with Gradio Chat", elem_classes=["center"])
250
  gr.Markdown(
251
  "This space demonstrates how to build feature rich chatbot UI in [Gradio](https://www.gradio.app/). Supported features "
252
  "include • multiple chatting channels, • chat history save/restoration, • stop generating text response, • regenerate the "
253
  "last conversation, • clean the chat history, • dynamic kick-starting prompt templates, • adjusting text generation parameters, "
254
+ "• inspecting the actual prompt that the model sees. The underlying Large Language Model is the Google's "
255
+ "[PaLM-2](https://developers.generativeai.google/)"
 
256
  )
257
 
258
  with gr.Row():
 
354
  gr.Markdown("#### Context managements")
355
  with gr.Row():
356
  ctx_num_lconv = gr.Slider(2, 10, 3, step=1, label="number of recent talks to keep", interactive=True)
 
 
 
 
 
 
 
357
 
 
 
 
 
 
 
358
  send_event = instruction_txtbox.submit(
359
  lambda: [
360
  gr.update(visible=False),