johann22 commited on
Commit
098c00e
·
1 Parent(s): 06c2bcd

Update app_dialogue.py

Browse files
Files changed (1) hide show
  1. app_dialogue.py +2 -1
app_dialogue.py CHANGED
@@ -113,11 +113,12 @@ def add_file(file):
113
  # To bypass that, we pass instead the images URLs from the spaces repo.
114
  all_images = glob.glob(f"{os.path.dirname(__file__)}/example_images/*")
115
  DEFAULT_IMAGES_TMP_PATH_TO_URL = {}
 
116
  for im_path in all_images:
117
  H = gr.Image(im_path, visible=False, type="filepath")
118
  tmp_filename = H.preprocess(H.value)
119
  DEFAULT_IMAGES_TMP_PATH_TO_URL[tmp_filename] = f"https://huggingface.co/spaces/HuggingFaceM4/idefics_playground/resolve/main/example_images/{os.path.basename(im_path)}"
120
-
121
 
122
  # Utils to handle the image markdown display logic
123
  def split_str_on_im_markdown(string: str) -> List[str]:
 
113
  # To bypass that, we pass instead the images URLs from the spaces repo.
114
  all_images = glob.glob(f"{os.path.dirname(__file__)}/example_images/*")
115
  DEFAULT_IMAGES_TMP_PATH_TO_URL = {}
116
+ '''
117
  for im_path in all_images:
118
  H = gr.Image(im_path, visible=False, type="filepath")
119
  tmp_filename = H.preprocess(H.value)
120
  DEFAULT_IMAGES_TMP_PATH_TO_URL[tmp_filename] = f"https://huggingface.co/spaces/HuggingFaceM4/idefics_playground/resolve/main/example_images/{os.path.basename(im_path)}"
121
+ '''
122
 
123
  # Utils to handle the image markdown display logic
124
  def split_str_on_im_markdown(string: str) -> List[str]: