Spaces:
Sleeping
Sleeping
add all
Browse files- .gitignore +1 -0
- app.py +19 -0
- packages.txt +2 -0
- requirements.txt +2 -0
.gitignore
CHANGED
@@ -1 +1,2 @@
|
|
1 |
.venv/
|
|
|
|
1 |
.venv/
|
2 |
+
*.pyc
|
app.py
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import nibabel as nib
|
3 |
+
import os
|
4 |
+
|
5 |
+
def convert(input):
|
6 |
+
path = input.name
|
7 |
+
|
8 |
+
# if path.endswith('.zip'):
|
9 |
+
# os.system('unzip ' + path)
|
10 |
+
# path = path[:-4]
|
11 |
+
return None
|
12 |
+
|
13 |
+
|
14 |
+
gr.Interface(
|
15 |
+
fn=convert,
|
16 |
+
inputs="file",
|
17 |
+
outputs="file",
|
18 |
+
title="Convert a Dicom folder to a Nifti (.nii.gz) file",
|
19 |
+
).launch()
|
packages.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
p7zip-full
|
2 |
+
p7zip-rar
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
nibabel
|
2 |
+
gradio
|