Spaces:
Running
Running
lovodkin93
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -5,12 +5,12 @@ import os
|
|
5 |
def show_html_in_iframe(page_idx):
|
6 |
# Construct the URL using the selected index
|
7 |
# url = f'https://wmtis.s3.eu-west-1.amazonaws.com/test/{html_files[page_idx]}'
|
8 |
-
url = f'https://fusereviews.github.io/multi-review-fusion-in-context/dataset_htmls/
|
9 |
iframe_html = f'<iframe src="{url}" width="100%" height="1000"></iframe>'
|
10 |
return iframe_html
|
11 |
|
12 |
# Path to the directory containing HTML files
|
13 |
-
html_files_path = os.path.join("html_files", "
|
14 |
html_files = [f for f in os.listdir(html_files_path) if f.endswith('.html')]
|
15 |
|
16 |
with gr.Blocks() as demo:
|
|
|
5 |
def show_html_in_iframe(page_idx):
|
6 |
# Construct the URL using the selected index
|
7 |
# url = f'https://wmtis.s3.eu-west-1.amazonaws.com/test/{html_files[page_idx]}'
|
8 |
+
url = f'https://fusereviews.github.io/multi-review-fusion-in-context/dataset_htmls/train/{html_files[page_idx]}'
|
9 |
iframe_html = f'<iframe src="{url}" width="100%" height="1000"></iframe>'
|
10 |
return iframe_html
|
11 |
|
12 |
# Path to the directory containing HTML files
|
13 |
+
html_files_path = os.path.join("html_files", "train")
|
14 |
html_files = [f for f in os.listdir(html_files_path) if f.endswith('.html')]
|
15 |
|
16 |
with gr.Blocks() as demo:
|