80cols commited on
Commit
78e56d3
·
verified ·
1 Parent(s): e8bbe7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -4
app.py CHANGED
@@ -23,12 +23,33 @@ demo = gr.Blocks(css=".markdown-body { font-size: 18px; }")
23
 
24
  with demo:
25
 
 
 
 
 
 
 
 
 
26
  gr.Markdown(
27
  f"""
28
- <div style="display: flex; justify-content: center; align-items: center;">
29
- <img style="margin-right: 50px;" width=200 src="https://huggingface.co/spaces/Tenefix/private-fhe-fraud-detection/resolve/main/Img/zama.png">
30
- <img width=200 src="https://huggingface.co/spaces/Tenefix/private-fhe-fraud-detection/resolve/main/Img/Epita.png">
31
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  """
33
  )
34
 
@@ -295,4 +316,4 @@ with demo:
295
  )
296
 
297
  if __name__ == "__main__":
298
- demo.launch(share=True)
 
23
 
24
  with demo:
25
 
26
+ # gr.Markdown(
27
+ # f"""
28
+ # <div style="display: flex; justify-content: center; align-items: center;">
29
+ # <img style="margin-right: 50px;" width=200 src="https://huggingface.co/spaces/Tenefix/private-fhe-fraud-detection/resolve/main/Img/zama.png">
30
+ # <img width=200 src="https://huggingface.co/spaces/Tenefix/private-fhe-fraud-detection/resolve/main/Img/Epita.png">
31
+ # </div>
32
+ # """
33
+ # )
34
  gr.Markdown(
35
  f"""
36
+ <div id="image-container" style="display: flex; justify-content: center; align-items: center;">
37
+ <img id="zama-image" style="margin-right: 50px;" width=200 src="https://huggingface.co/spaces/Tenefix/private-fhe-fraud-detection/raw/main/Img/zama.png">
38
+ <img id="epita-image" width=200 src="https://huggingface.co/spaces/Tenefix/private-fhe-fraud-detection/raw/main/Img/Epita.png">
39
  </div>
40
+ <script>
41
+ console.log("Markdown with images rendered");
42
+ const zamaImage = document.getElementById('zama-image');
43
+ const epitaImage = document.getElementById('epita-image');
44
+ console.log("Zama Image:", zamaImage);
45
+ console.log("Epita Image:", epitaImage);
46
+ if (zamaImage) {{
47
+ console.log("Zama Image src:", zamaImage.src);
48
+ }}
49
+ if (epitaImage) {{
50
+ console.log("Epita Image src:", epitaImage.src);
51
+ }}
52
+ </script>
53
  """
54
  )
55
 
 
316
  )
317
 
318
  if __name__ == "__main__":
319
+ demo.launch()