Spaces:
Running
on
Zero
Running
on
Zero
fix: remove offload data.
Browse files
app.py
CHANGED
|
@@ -7,6 +7,10 @@ from PIL import Image
|
|
| 7 |
from threading import Thread
|
| 8 |
import gradio as gr
|
| 9 |
import spaces
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
model_name = "scb10x/typhoon2-qwen2vl-7b-vision-instruct"
|
| 12 |
model = Qwen2VLForConditionalGeneration.from_pretrained(
|
|
|
|
| 7 |
from threading import Thread
|
| 8 |
import gradio as gr
|
| 9 |
import spaces
|
| 10 |
+
import subprocess
|
| 11 |
+
|
| 12 |
+
# to fix no space left bug.
|
| 13 |
+
result = subprocess.run("rm -rf /data-nvme/zerogpu-offload/*", shell=True, check=True, env=env)
|
| 14 |
|
| 15 |
model_name = "scb10x/typhoon2-qwen2vl-7b-vision-instruct"
|
| 16 |
model = Qwen2VLForConditionalGeneration.from_pretrained(
|