insomnia7 commited on
Commit
ecb3410
·
verified ·
1 Parent(s): 0d552d6

Upload ./app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -17,13 +17,13 @@ from huggingface_hub import hf_hub_download
17
  import spaces
18
  import gradio as gr
19
 
20
- GRADIO_TMP = os.path.join(os.path.dirname(__file__), ".gradio_tmp")
21
- Path(GRADIO_TMP).mkdir(parents=True, exist_ok=True)
22
 
23
- os.environ["GRADIO_TEMP_DIR"] = GRADIO_TMP
24
- os.environ["TMPDIR"] = GRADIO_TMP
25
- os.environ["TEMP"] = GRADIO_TMP
26
- os.environ["TMP"] = GRADIO_TMP
27
 
28
  from transformers import Qwen3VLForConditionalGeneration, AutoProcessor
29
  from sam2 import VQ_SAM2, VQ_SAM2Config, SAM2Config
 
17
  import spaces
18
  import gradio as gr
19
 
20
+ # GRADIO_TMP = os.path.join(os.path.dirname(__file__), ".gradio_tmp")
21
+ # Path(GRADIO_TMP).mkdir(parents=True, exist_ok=True)
22
 
23
+ # os.environ["GRADIO_TEMP_DIR"] = GRADIO_TMP
24
+ # os.environ["TMPDIR"] = GRADIO_TMP
25
+ # os.environ["TEMP"] = GRADIO_TMP
26
+ # os.environ["TMP"] = GRADIO_TMP
27
 
28
  from transformers import Qwen3VLForConditionalGeneration, AutoProcessor
29
  from sam2 import VQ_SAM2, VQ_SAM2Config, SAM2Config