Update app.py
Browse files
app.py
CHANGED
@@ -109,52 +109,39 @@ topic_model_2_output = topic_model_2.get_topic_info(topic[0])["Representation"][
|
|
109 |
]
|
110 |
###############################################################################
|
111 |
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
)
|
146 |
-
|
147 |
-
|
148 |
-
gpt2_pipeline_output,
|
149 |
-
"\n",
|
150 |
-
)
|
151 |
-
print(
|
152 |
-
"5. Highest Predicted Topic Model_1 For Previous The Answer Based on 4.:",
|
153 |
-
topic_model_1_output,
|
154 |
-
"\n",
|
155 |
-
)
|
156 |
-
print(
|
157 |
-
"6. Highest Predicted Topic Model_2 For Previous The Answer Based on 4.:",
|
158 |
-
topic_model_2_output,
|
159 |
-
)
|
160 |
-
print("-" * 150)
|
|
|
109 |
]
|
110 |
###############################################################################
|
111 |
|
112 |
+
st.write("-" * 150)
|
113 |
+
st.write("vqa_pipeline_output =", vqa_pipeline_output)
|
114 |
+
st.write("bbu_pipeline_output =", bbu_pipeline_output)
|
115 |
+
st.write("facebook_model_output =", facebook_model_output)
|
116 |
+
st.write("gpt2_pipeline_output =", gpt2_pipeline_output)
|
117 |
+
st.write("topic_model_1_output =", topic_model_1_output)
|
118 |
+
st.write("topic_model_2_output =", topic_model_2_output)
|
119 |
+
st.write("-" * 150)
|
120 |
+
|
121 |
+
st.write("SUMMARY")
|
122 |
+
st.subheader("Your Image:")
|
123 |
+
st.image(image, caption="Your Image", use_column_width=True)
|
124 |
+
st.subheader("Your Question:")
|
125 |
+
st.write(question)
|
126 |
+
st.write("-" * 100)
|
127 |
+
|
128 |
+
st.subheader("1. Highest Predicted Answer For Your Question:")
|
129 |
+
st.write(vqa_pipeline_output["answer"])
|
130 |
+
st.write(text)
|
131 |
+
|
132 |
+
st.subheader("2. Highest Predicted Sequence On [MASK] Based on 1.:")
|
133 |
+
st.write(bbu_pipeline_output[0]["sequence"])
|
134 |
+
|
135 |
+
st.subheader("3. Conversation Based On Previous Answer Based on 2.:")
|
136 |
+
st.write(facebook_model_output)
|
137 |
+
|
138 |
+
st.subheader("4. Text Generated Based On Previous Answer Based on 3.:")
|
139 |
+
st.write(gpt2_pipeline_output)
|
140 |
+
|
141 |
+
st.subheader("5. Highest Predicted Topic Model_1 For Previous The Answer Based on 4.:")
|
142 |
+
st.write(topic_model_1_output)
|
143 |
+
|
144 |
+
st.subheader("6. Highest Predicted Topic Model_2 For Previous The Answer Based on 4.:")
|
145 |
+
st.write(topic_model_2_output)
|
146 |
+
|
147 |
+
st.write("-" * 150)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|