Making is static file_path
Browse files
app.py
CHANGED
@@ -268,11 +268,11 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
268 |
header_path = os.path.join("header", "1.jpg")
|
269 |
|
270 |
# Print an image
|
271 |
-
with gr.Row()
|
272 |
gr.HTML("""
|
273 |
<div style="text-align: center;">
|
274 |
<h5 style="margin-bottom: 10px;">Explanation of the Process:</h5>
|
275 |
-
<img src="
|
276 |
<h5 style="margin-top: 10px;">Try It Out Yourself:</h5>
|
277 |
</div>
|
278 |
""")
|
|
|
268 |
header_path = os.path.join("header", "1.jpg")
|
269 |
|
270 |
# Print an image
|
271 |
+
with gr.Row():# For images needs to be HTML
|
272 |
gr.HTML("""
|
273 |
<div style="text-align: center;">
|
274 |
<h5 style="margin-bottom: 10px;">Explanation of the Process:</h5>
|
275 |
+
<img src="/static/header_image.png" alt="Header" style="width: 100%; height: auto; margin-bottom: 20px;">
|
276 |
<h5 style="margin-top: 10px;">Try It Out Yourself:</h5>
|
277 |
</div>
|
278 |
""")
|