Update app.py
Browse files
app.py
CHANGED
@@ -37,15 +37,34 @@ def main():
|
|
37 |
selection = st.sidebar.radio("Go to", ["Home", "Dataset Analysis", "Evaluation Results", "Run Inference", "Dissertation Report", "Object Detection"])
|
38 |
|
39 |
if selection == "Home":
|
40 |
-
|
|
|
|
|
41 |
elif selection == "Dissertation Report":
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
elif selection == "Evaluation Results":
|
44 |
-
|
|
|
|
|
|
|
45 |
elif selection == "Dataset Analysis":
|
46 |
-
|
|
|
|
|
|
|
47 |
elif selection == "Run Inference":
|
48 |
run_inference()
|
|
|
49 |
elif selection == "Object Detection":
|
50 |
run_object_detection()
|
51 |
|
|
|
37 |
selection = st.sidebar.radio("Go to", ["Home", "Dataset Analysis", "Evaluation Results", "Run Inference", "Dissertation Report", "Object Detection"])
|
38 |
|
39 |
if selection == "Home":
|
40 |
+
st.title("MultiModal Learning for Knowledg-Based Visual Question Answering")
|
41 |
+
st.write("Home page content goes here...")
|
42 |
+
|
43 |
elif selection == "Dissertation Report":
|
44 |
+
st.title("Dissertation Report")
|
45 |
+
st.write("Click the link below to view the PDF.")
|
46 |
+
# Example to display a link to a PDF
|
47 |
+
st.download_button(
|
48 |
+
label="Download PDF",
|
49 |
+
data=open("Files/Dissertation Report.pdf", "rb"),
|
50 |
+
file_name="example.pdf",
|
51 |
+
mime="application/octet-stream"
|
52 |
+
)
|
53 |
+
|
54 |
+
|
55 |
elif selection == "Evaluation Results":
|
56 |
+
st.title("Evaluation Results")
|
57 |
+
st.write("This is a Place Holder until the contents are uploaded.")
|
58 |
+
|
59 |
+
|
60 |
elif selection == "Dataset Analysis":
|
61 |
+
st.title("OK-VQA Dataset Analysis")
|
62 |
+
st.write("This is a Place Holder until the contents are uploaded.")
|
63 |
+
|
64 |
+
|
65 |
elif selection == "Run Inference":
|
66 |
run_inference()
|
67 |
+
|
68 |
elif selection == "Object Detection":
|
69 |
run_object_detection()
|
70 |
|