Spaces:
Running
Running
Update app.py
Browse filesmissing .ckpt extention
app.py
CHANGED
|
@@ -205,7 +205,7 @@ def extract_model_files(uploaded_files: List) -> List[Path]:
|
|
| 205 |
temp_dir = Path(tempfile.mkdtemp())
|
| 206 |
|
| 207 |
# Supported model file extensions
|
| 208 |
-
supported_extensions = {'.safetensors', '.pt', '.bin'}
|
| 209 |
|
| 210 |
for file_info in uploaded_files:
|
| 211 |
file_path = Path(file_info.name)
|
|
@@ -355,7 +355,7 @@ def process_files_async(uploaded_files: List) -> str:
|
|
| 355 |
|
| 356 |
if total_files == 0:
|
| 357 |
print("β No supported model files found")
|
| 358 |
-
return "No supported model files (.safetensors, .pt, .bin) found in uploaded content."
|
| 359 |
|
| 360 |
update_progress(0, total_files, "Processing files...")
|
| 361 |
|
|
@@ -461,10 +461,10 @@ def create_interface():
|
|
| 461 |
gr.Markdown("""
|
| 462 |
# π DataDrones Bulk Uploader
|
| 463 |
|
| 464 |
-
Upload multiple model files (`.safetensors`, `.pt`, `.bin`) or zip archives containing model files to datadrones.com.
|
| 465 |
|
| 466 |
**Features:**
|
| 467 |
-
- Supports direct model file uploads (.safetensors, .pt, .bin) and zip archives
|
| 468 |
- Automatic hash checking to avoid duplicates
|
| 469 |
- Metadata retrieval from Civitai and other sources
|
| 470 |
- Real-time progress tracking
|
|
@@ -474,9 +474,9 @@ def create_interface():
|
|
| 474 |
with gr.Row():
|
| 475 |
with gr.Column(scale=2):
|
| 476 |
file_input = gr.File(
|
| 477 |
-
label="Select model files (.safetensors, .pt, .bin) or .zip archives",
|
| 478 |
file_count="multiple",
|
| 479 |
-
file_types=[".safetensors", ".pt", ".bin", ".zip"]
|
| 480 |
)
|
| 481 |
|
| 482 |
upload_btn = gr.Button("π Start Upload", variant="primary", size="lg")
|
|
@@ -484,7 +484,7 @@ def create_interface():
|
|
| 484 |
with gr.Column(scale=1):
|
| 485 |
gr.Markdown("""
|
| 486 |
### Instructions:
|
| 487 |
-
1. Select multiple model files (`.safetensors`, `.pt`, `.bin`) directly, or
|
| 488 |
2. Upload `.zip` archives containing model files
|
| 489 |
3. Click "Start Upload" to begin processing
|
| 490 |
4. Monitor progress in real-time below
|
|
|
|
| 205 |
temp_dir = Path(tempfile.mkdtemp())
|
| 206 |
|
| 207 |
# Supported model file extensions
|
| 208 |
+
supported_extensions = {'.safetensors', '.pt', '.bin', '.ckpt'}
|
| 209 |
|
| 210 |
for file_info in uploaded_files:
|
| 211 |
file_path = Path(file_info.name)
|
|
|
|
| 355 |
|
| 356 |
if total_files == 0:
|
| 357 |
print("β No supported model files found")
|
| 358 |
+
return "No supported model files (.safetensors, .pt, .bin, '.ckpt') found in uploaded content."
|
| 359 |
|
| 360 |
update_progress(0, total_files, "Processing files...")
|
| 361 |
|
|
|
|
| 461 |
gr.Markdown("""
|
| 462 |
# π DataDrones Bulk Uploader
|
| 463 |
|
| 464 |
+
Upload multiple model files (`.safetensors`, `.pt`, `.bin`, `.ckpt`) or zip archives containing model files to datadrones.com.
|
| 465 |
|
| 466 |
**Features:**
|
| 467 |
+
- Supports direct model file uploads (.safetensors, .pt, .bin, .ckpt) and zip archives
|
| 468 |
- Automatic hash checking to avoid duplicates
|
| 469 |
- Metadata retrieval from Civitai and other sources
|
| 470 |
- Real-time progress tracking
|
|
|
|
| 474 |
with gr.Row():
|
| 475 |
with gr.Column(scale=2):
|
| 476 |
file_input = gr.File(
|
| 477 |
+
label="Select model files (.safetensors, .pt, .bin, .ckpt) or .zip archives",
|
| 478 |
file_count="multiple",
|
| 479 |
+
file_types=[".safetensors", ".pt", ".bin", ".zip", ".ckpt"]
|
| 480 |
)
|
| 481 |
|
| 482 |
upload_btn = gr.Button("π Start Upload", variant="primary", size="lg")
|
|
|
|
| 484 |
with gr.Column(scale=1):
|
| 485 |
gr.Markdown("""
|
| 486 |
### Instructions:
|
| 487 |
+
1. Select multiple model files (`.safetensors`, `.pt`, `.bin`, `.ckpt`) directly, or
|
| 488 |
2. Upload `.zip` archives containing model files
|
| 489 |
3. Click "Start Upload" to begin processing
|
| 490 |
4. Monitor progress in real-time below
|