jhj0517 commited on
Commit
c020be9
1 Parent(s): e10749b

Add mimetype constants

Browse files
Files changed (1) hide show
  1. modules/utils/constants.py +7 -1
modules/utils/constants.py CHANGED
@@ -31,4 +31,10 @@ GRADIO_CSS = """
31
  #blink_slider .md.svelte-7ddecg.chatbot.prose {
32
  font-size: 0.7em;
33
  }
34
- """
 
 
 
 
 
 
 
31
  #blink_slider .md.svelte-7ddecg.chatbot.prose {
32
  font-size: 0.7em;
33
  }
34
+ """
35
+
36
+ SOUND_FILE_EXT = ['.mp3', '.wav', '.aac', '.flac', '.ogg', '.m4a', '.wma']
37
+ IMAGE_FILE_EXT = ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp']
38
+ VIDEO_FILE_EXT = ['.mp4', '.avi', '.mov', '.wmv', '.flv', '.webm', '.mkv', '.mpeg', '.mpg', '.m4v', '.3gp', '.ts', '.vob', '.gif']
39
+ TRANSPARENT_VIDEO_FILE_EXT = ['.webm', '.mov', '.gif']
40
+ SUPPORTED_VIDEO_FILE_EXT = ['.mp4', '.mov', '.webm', '.gif']