m7mdal7aj commited on
Commit
ef2343f
1 Parent(s): f8ba7cc

Update my_model/utilities/ui_manager.py

Browse files
Files changed (1) hide show
  1. my_model/utilities/ui_manager.py +4 -0
my_model/utilities/ui_manager.py CHANGED
@@ -50,6 +50,8 @@ class UIManager():
50
  st.title('Multimodal Learning for Visual Question Answering using World Knowledge')
51
  st.text('')
52
  st.header('(Knowledge-Based Visual Question Answering)')
 
 
53
  col1, col2, col3 = st.columns([2, 1, 1])
54
  with col1:
55
  st.text('')
@@ -65,6 +67,8 @@ class UIManager():
65
  st.write("""\n\n\nThis is an interactive application built to demonstrate the project developed and allow for interaction with the KB-VQA model as part of the dissertation for Masters degree in Artificial Intelligence at the [University of Bath](https://www.bath.ac.uk/).
66
  \n\n\nDeveloped by: [Mohammed H AlHaj](https://www.linkedin.com/in/m7mdal7aj)""")
67
  with col2:
 
 
68
  st.image("Files/Model Arch.png")
69
 
70
  with col3:
 
50
  st.title('Multimodal Learning for Visual Question Answering using World Knowledge')
51
  st.text('')
52
  st.header('(Knowledge-Based Visual Question Answering)')
53
+ with open("Files/Model Arch.html", 'r', encoding='utf-8') as f:
54
+ model_arch_html = f.read()
55
  col1, col2, col3 = st.columns([2, 1, 1])
56
  with col1:
57
  st.text('')
 
67
  st.write("""\n\n\nThis is an interactive application built to demonstrate the project developed and allow for interaction with the KB-VQA model as part of the dissertation for Masters degree in Artificial Intelligence at the [University of Bath](https://www.bath.ac.uk/).
68
  \n\n\nDeveloped by: [Mohammed H AlHaj](https://www.linkedin.com/in/m7mdal7aj)""")
69
  with col2:
70
+ # Display the HTML content in Streamlit
71
+ st.markdown(model_arch_html, unsafe_allow_html=True)
72
  st.image("Files/Model Arch.png")
73
 
74
  with col3: