Blessin commited on
Commit
7e7761c
·
1 Parent(s): fb10634

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -10,7 +10,11 @@ DIALOGUES = dataset["train"]["dialogues"]
10
 
11
  def generate_statement():
12
  """Return a random dialogue from the dataset."""
13
- return random.choice(DIALOGUES)
 
 
 
 
14
 
15
  def main():
16
  # Define the UI using gr.Interface
 
10
 
11
  def generate_statement():
12
  """Return a random dialogue from the dataset."""
13
+ # Pick a random sublist from the dataset
14
+ random_dialogue_list = random.choice(DIALOGUES)
15
+ # Pick a random dialogue from the sublist
16
+ return random.choice(random_dialogue_list)
17
+
18
 
19
  def main():
20
  # Define the UI using gr.Interface