jykoh commited on
Commit
7240187
1 Parent(s): d32adcb
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,7 +57,7 @@ class FromageChatBot:
57
  if temp != 0.0:
58
  top_p = 0.95
59
 
60
- print('Running model.generate_for_images_and_texts')
61
  model_outputs = self.model.generate_for_images_and_texts(model_inputs,
62
  num_words=num_words, ret_scale_factor=ret_scale_factor, top_p=top_p,
63
  temperature=temperature, max_num_rets=max_nm_rets)
@@ -113,7 +113,7 @@ class FromageChatBot:
113
  image_btn.upload(self.upload_image, [gr_state, image_btn], [gr_state, chatbot])
114
  clear_btn.click(self.reset, [], [gr_state, chatbot])
115
 
116
- demo.launch(share=False, server_name="0.0.0.0")
117
 
118
 
119
  def main():
 
57
  if temp != 0.0:
58
  top_p = 0.95
59
 
60
+ print('Running model.generate_for_images_and_texts', flush=True)
61
  model_outputs = self.model.generate_for_images_and_texts(model_inputs,
62
  num_words=num_words, ret_scale_factor=ret_scale_factor, top_p=top_p,
63
  temperature=temperature, max_num_rets=max_nm_rets)
 
113
  image_btn.upload(self.upload_image, [gr_state, image_btn], [gr_state, chatbot])
114
  clear_btn.click(self.reset, [], [gr_state, chatbot])
115
 
116
+ demo.launch(share=False, debug=True, server_name="0.0.0.0")
117
 
118
 
119
  def main():