Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -62,8 +62,8 @@ def update_sample(dataset, sample_idx):
|
|
62 |
return "No data available", "No data available"
|
63 |
|
64 |
sample = dataset[int(sample_idx)]
|
65 |
-
original_text = sample.get("
|
66 |
-
rephrased_text = sample.get("
|
67 |
|
68 |
return original_text, rephrased_text
|
69 |
|
|
|
62 |
return "No data available", "No data available"
|
63 |
|
64 |
sample = dataset[int(sample_idx)]
|
65 |
+
original_text = sample.get("text", sample.get("text", "No original text found")).replace('\n', '<br>')
|
66 |
+
rephrased_text = sample.get("ultra_text", "No rephrased text found")
|
67 |
|
68 |
return original_text, rephrased_text
|
69 |
|