Blessin commited on
Commit
384cca9
·
1 Parent(s): 9f1c590

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -7,7 +7,12 @@ from datasets import load_dataset
7
 
8
  # Load the dataset from Hugging Face Spaces
9
  dataset = load_dataset("Blessin/dialogues-one-liners")
10
- DIALOGUES = dataset["train"]["dialogue"]
 
 
 
 
 
11
 
12
  def generate_statement():
13
  # Generate a random statement from the dataset
 
7
 
8
  # Load the dataset from Hugging Face Spaces
9
  dataset = load_dataset("Blessin/dialogues-one-liners")
10
+
11
+ # Get the column name for the dialogue data
12
+ column_name = dataset.column_names[0]
13
+
14
+ # Access the dialogue data
15
+ DIALOGUES = dataset["train"][column_name]
16
 
17
  def generate_statement():
18
  # Generate a random statement from the dataset