Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,12 +7,9 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
7 |
"""
|
8 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
9 |
|
10 |
-
|
11 |
# Load the dataset from Hugging Face
|
12 |
dataset = load_dataset("samhog/psychology-10k", split="train") # Load the training split
|
13 |
|
14 |
-
|
15 |
-
|
16 |
def respond(
|
17 |
message,
|
18 |
history: list[tuple[str, str]],
|
@@ -76,7 +73,7 @@ demo = gr.ChatInterface(
|
|
76 |
label="Top-p (nucleus sampling)",
|
77 |
),
|
78 |
],
|
79 |
-
theme="allenai/gradio-theme"
|
80 |
)
|
81 |
|
82 |
if __name__ == "__main__":
|
|
|
7 |
"""
|
8 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
9 |
|
|
|
10 |
# Load the dataset from Hugging Face
|
11 |
dataset = load_dataset("samhog/psychology-10k", split="train") # Load the training split
|
12 |
|
|
|
|
|
13 |
def respond(
|
14 |
message,
|
15 |
history: list[tuple[str, str]],
|
|
|
73 |
label="Top-p (nucleus sampling)",
|
74 |
),
|
75 |
],
|
76 |
+
theme="allenai/gradio-theme" # Apply the custom theme
|
77 |
)
|
78 |
|
79 |
if __name__ == "__main__":
|