Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
import numpy as np
|
| 2 |
import gradio as gr
|
| 3 |
import nibabel as nib
|
|
@@ -6,6 +8,8 @@ import matplotlib.pyplot as plt
|
|
| 6 |
from scipy import ndimage
|
| 7 |
from huggingface_hub import from_pretrained_keras
|
| 8 |
|
|
|
|
|
|
|
| 9 |
def read_nifti_file(filepath):
|
| 10 |
"""Read and load volume"""
|
| 11 |
# Read file
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
import csv
|
| 3 |
import numpy as np
|
| 4 |
import gradio as gr
|
| 5 |
import nibabel as nib
|
|
|
|
| 8 |
from scipy import ndimage
|
| 9 |
from huggingface_hub import from_pretrained_keras
|
| 10 |
|
| 11 |
+
csv.field_size_limit(sys.maxsize)
|
| 12 |
+
|
| 13 |
def read_nifti_file(filepath):
|
| 14 |
"""Read and load volume"""
|
| 15 |
# Read file
|