mbar0075 commited on
Commit
7d83537
·
1 Parent(s): bbb267c

Making is static file_path

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="https://raw.githubusercontent.com/mbar0075/Maltese-Christian-Statue-Classifier/main/Assets/Diagrams/header.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
  """)
 
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
  """)