Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
@@ -15,7 +15,11 @@ from my_model.state_manager import StateManager
|
|
15 |
|
16 |
class InferenceRunner(StateManager):
|
17 |
def __init__(self):
|
|
|
18 |
super().__init__()
|
|
|
|
|
|
|
19 |
self.sample_images = [
|
20 |
"Files/sample1.jpg", "Files/sample2.jpg", "Files/sample3.jpg",
|
21 |
"Files/sample4.jpg", "Files/sample5.jpg", "Files/sample6.jpg",
|
@@ -70,9 +74,7 @@ class InferenceRunner(StateManager):
|
|
70 |
|
71 |
|
72 |
def run_inference(self):
|
73 |
-
|
74 |
-
st.write("Please note that this is not a general purpose mode, it is specifically trained on [OK-VQA Dataset](https://okvqa.allenai.org/) and desgined to give short and direct answers to the given questions about the given image")
|
75 |
-
self.initialize_state()
|
76 |
self.set_up_widgets()
|
77 |
st.session_state['settings_changed'] = self.has_state_changed()
|
78 |
if st.session_state['settings_changed']:
|
|
|
15 |
|
16 |
class InferenceRunner(StateManager):
|
17 |
def __init__(self):
|
18 |
+
|
19 |
super().__init__()
|
20 |
+
st.title("Run Inference")
|
21 |
+
st.write("Please note that this is not a general purpose mode, it is specifically trained on [OK-VQA Dataset](https://okvqa.allenai.org/) and desgined to give short and direct answers to the given questions about the given image")
|
22 |
+
self.initialize_state()
|
23 |
self.sample_images = [
|
24 |
"Files/sample1.jpg", "Files/sample2.jpg", "Files/sample3.jpg",
|
25 |
"Files/sample4.jpg", "Files/sample5.jpg", "Files/sample6.jpg",
|
|
|
74 |
|
75 |
|
76 |
def run_inference(self):
|
77 |
+
|
|
|
|
|
78 |
self.set_up_widgets()
|
79 |
st.session_state['settings_changed'] = self.has_state_changed()
|
80 |
if st.session_state['settings_changed']:
|