Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -136,11 +136,9 @@ class_type = "IfcRoot" # Change this to the desired class
|
|
| 136 |
def main():
|
| 137 |
df_Ifc = None
|
| 138 |
tmp_filename = None
|
| 139 |
-
|
| 140 |
archivo_subido = st.file_uploader("Seleccione y cargue el modelo ifc que desea validar:", type=["ifc"])
|
| 141 |
|
| 142 |
if archivo_subido is not None:
|
| 143 |
-
with st.spinner('Procesando archivo...'):
|
| 144 |
with tempfile.NamedTemporaryFile(delete=False) as tmp_file:
|
| 145 |
tmp_file.write(archivo_subido.read())
|
| 146 |
tmp_filename = tmp_file.name
|
|
|
|
| 136 |
def main():
|
| 137 |
df_Ifc = None
|
| 138 |
tmp_filename = None
|
|
|
|
| 139 |
archivo_subido = st.file_uploader("Seleccione y cargue el modelo ifc que desea validar:", type=["ifc"])
|
| 140 |
|
| 141 |
if archivo_subido is not None:
|
|
|
|
| 142 |
with tempfile.NamedTemporaryFile(delete=False) as tmp_file:
|
| 143 |
tmp_file.write(archivo_subido.read())
|
| 144 |
tmp_filename = tmp_file.name
|