Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,6 +28,13 @@ with gr.Blocks() as demo:
|
|
| 28 |
submit_button.click(chatbot_response, inputs=user_input, outputs=chatbot_output)
|
| 29 |
|
| 30 |
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
|
| 33 |
|
|
|
|
| 28 |
submit_button.click(chatbot_response, inputs=user_input, outputs=chatbot_output)
|
| 29 |
|
| 30 |
demo.launch()
|
| 31 |
+
from datasets import load_dataset
|
| 32 |
+
|
| 33 |
+
# Load a sample dataset from Hugging Face
|
| 34 |
+
dataset = load_dataset("squad") # you can replace "squad" with any dataset you're using
|
| 35 |
+
|
| 36 |
+
# Print the first few entries to verify that it’s loaded
|
| 37 |
+
print(dataset["train"][0]) # Prints the first example from the training set
|
| 38 |
|
| 39 |
|
| 40 |
|