JustKiddo commited on
Commit
db4ec8b
·
verified ·
1 Parent(s): 0f51652

Loaded a demo dataset to evaluate processes.

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,10 +1,13 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
 
 
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
6
  """
7
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
 
8
 
9
 
10
  def respond(
@@ -45,9 +48,9 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
45
  demo = gr.ChatInterface(
46
  respond,
47
  additional_inputs=[
48
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
49
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
50
- gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
51
  gr.Slider(
52
  minimum=0.1,
53
  maximum=1.0,
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
+ from datasets import load_dataset
5
+
6
  """
7
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
8
  """
9
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
10
+ dataset = load_dataset("JustKiddo/KiddosVault")
11
 
12
 
13
  def respond(
 
48
  demo = gr.ChatInterface(
49
  respond,
50
  additional_inputs=[
51
+ gr.Textbox(value="You are a professional Mental Healthcare Chatbot.", label="System message"),
52
+ gr.Slider(minimum=1, maximum=2048, value=2048, step=1, label="Max new tokens"),
53
+ gr.Slider(minimum=0.1, maximum=4.0, value=1, step=0.1, label="Temperature"),
54
  gr.Slider(
55
  minimum=0.1,
56
  maximum=1.0,