VinitT commited on
Commit
9c70671
·
verified ·
1 Parent(s): 3f813ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -122,16 +122,16 @@ def main():
122
  del image
123
  torch.cuda.empty_cache()
124
  torch.manual_seed(0)
125
- st.write("Description of all images:")
126
- st.write(all_output_texts)
127
- if all_output_texts:
128
- st.write("Generate story")
129
- generate_story_button = st.button("Generate Story", key="generate_story")
130
-
131
- if generate_story_button:
132
- story = generate_story(all_output_texts)
133
- st.write("Generated Story:")
134
- st.write(story)
135
 
136
  if __name__ == "__main__":
137
  main()
 
122
  del image
123
  torch.cuda.empty_cache()
124
  torch.manual_seed(0)
125
+ st.write("Description of all images:")
126
+ st.write(all_output_texts)
127
+ if all_output_texts:
128
+ st.write("Generate story")
129
+ generate_story_button = st.button("Generate Story", key="generate_story")
130
+
131
+ if generate_story_button:
132
+ story = generate_story(all_output_texts)
133
+ st.write("Generated Story:")
134
+ st.write(story)
135
 
136
  if __name__ == "__main__":
137
  main()