Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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
|