Tonic commited on
Commit
8290337
1 Parent(s): 6132d55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,7 +6,7 @@ import torch
6
  import gradio as gr
7
  import sentencepiece
8
 
9
- title = "# ²Welcome to 🙋🏻‍♂️Tonic's🧠🤌🏻Neural Chat (From Intel)!"
10
  description = """Try out [Intel/neural-chat-7b-v3-1](https://huggingface.co/Intel/neural-chat-7b-v3-1) the Instruct of [Intel/neural-chat-7b-v3](https://huggingface.co/Intel/neural-chat-7b-v3) Llama Finetune using the [mistralai/Mistral-7B](https://huggingface.co/mistralai/Mistral-7B-v0.1) recipe. You can use [Intel/neural-chat-7b-v3-1](https://huggingface.co/Intel/neural-chat-7b-v3-1) here via API using Gradio by scrolling down and clicking Use 'Via API' or privately by [cloning this space on huggingface](https://huggingface.co/spaces/TeamTonic/NeuralChat?duplicate=true) . [Join my active builders' server on discord](https://discord.gg/VqTxc76K3u). Let's build together!. """
11
 
12
  os.environ['PYTORCH_CUDA_ALLOC_CONF'] = 'max_split_size_mb:50'
@@ -74,10 +74,10 @@ with gr.Blocks(theme = "ParityError/Anime") as demo:
74
 
75
  with gr.Accordion("Advanced Settings", open=lambda do_sample: do_sample):
76
  with gr.Row():
77
- max_new_tokens = gr.Slider(label="Max new tokens", value=780, minimum=550, maximum=3200, step=1)
78
  temperature = gr.Slider(label="Temperature", value=0.3, minimum=0.1, maximum=1.0, step=0.1)
79
  top_p = gr.Slider(label="Top-p (nucleus sampling)", value=0.90, minimum=0.01, maximum=0.99, step=0.05)
80
- repetition_penalty = gr.Slider(label="Repetition penalty", value=1.9, minimum=1.0, maximum=2.0, step=0.05)
81
 
82
  submit_button = gr.Button("Submit")
83
  output_text = gr.Textbox(label="🧠🤌🏻NeuralChat Response")
 
6
  import gradio as gr
7
  import sentencepiece
8
 
9
+ title = "# Welcome to 🙋🏻‍♂️Tonic's🧠🤌🏻Neural Chat (From Intel)!"
10
  description = """Try out [Intel/neural-chat-7b-v3-1](https://huggingface.co/Intel/neural-chat-7b-v3-1) the Instruct of [Intel/neural-chat-7b-v3](https://huggingface.co/Intel/neural-chat-7b-v3) Llama Finetune using the [mistralai/Mistral-7B](https://huggingface.co/mistralai/Mistral-7B-v0.1) recipe. You can use [Intel/neural-chat-7b-v3-1](https://huggingface.co/Intel/neural-chat-7b-v3-1) here via API using Gradio by scrolling down and clicking Use 'Via API' or privately by [cloning this space on huggingface](https://huggingface.co/spaces/TeamTonic/NeuralChat?duplicate=true) . [Join my active builders' server on discord](https://discord.gg/VqTxc76K3u). Let's build together!. """
11
 
12
  os.environ['PYTORCH_CUDA_ALLOC_CONF'] = 'max_split_size_mb:50'
 
74
 
75
  with gr.Accordion("Advanced Settings", open=lambda do_sample: do_sample):
76
  with gr.Row():
77
+ max_new_tokens = gr.Slider(label="Max new tokens", value=780, minimum=150, maximum=3200, step=1)
78
  temperature = gr.Slider(label="Temperature", value=0.3, minimum=0.1, maximum=1.0, step=0.1)
79
  top_p = gr.Slider(label="Top-p (nucleus sampling)", value=0.90, minimum=0.01, maximum=0.99, step=0.05)
80
+ repetition_penalty = gr.Slider(label="Repetition penalty", value=0.9, minimum=1.0, maximum=1.0, step=0.05)
81
 
82
  submit_button = gr.Button("Submit")
83
  output_text = gr.Textbox(label="🧠🤌🏻NeuralChat Response")