Spaces:
Running
Running
Loaded a demo dataset to evaluate processes.
Browse files
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
|
49 |
-
gr.Slider(minimum=1, maximum=2048, value=
|
50 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=
|
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,
|