Spaces:
Build error
Build error
Update templates/result.html
Browse files- templates/result.html +1 -1
templates/result.html
CHANGED
@@ -153,7 +153,7 @@
|
|
153 |
{% if file_extension %}
|
154 |
{% if file_extension in ['pdf'] %}
|
155 |
<!-- Display PDF in an iframe -->
|
156 |
-
<iframe src="{{
|
157 |
{% elif file_extension in ['png', 'jpg', 'jpeg'] %}
|
158 |
<!-- Display Image -->
|
159 |
<img src="{{ file_url }}" alt="Processed Image" class="img-fluid file-viewer" />
|
|
|
153 |
{% if file_extension %}
|
154 |
{% if file_extension in ['pdf'] %}
|
155 |
<!-- Display PDF in an iframe -->
|
156 |
+
<iframe src="{{ file_path }}" title="PDF Viewer" class="file-viewer"></iframe>
|
157 |
{% elif file_extension in ['png', 'jpg', 'jpeg'] %}
|
158 |
<!-- Display Image -->
|
159 |
<img src="{{ file_url }}" alt="Processed Image" class="img-fluid file-viewer" />
|