Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,10 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
| 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]],
|
|
|
|
| 10 |
# Load the dataset from Hugging Face
|
| 11 |
dataset = load_dataset("samhog/psychology-10k", split="train") # Load the training split
|
| 12 |
|
| 13 |
+
# Inspect the dataset structure
|
| 14 |
+
print("Dataset Columns:", dataset.column_names)
|
| 15 |
+
print("Sample Data:", dataset[0])
|
| 16 |
+
|
| 17 |
def respond(
|
| 18 |
message,
|
| 19 |
history: list[tuple[str, str]],
|