sanghan commited on
Commit
3ba6abe
Β·
1 Parent(s): 1b294d6

remove restrictions on stl files

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +0 -3
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  title: STL2GLB
3
- emoji: 🐨
4
  colorFrom: gray
5
  colorTo: red
6
  sdk: gradio
 
1
  ---
2
  title: STL2GLB
3
+ emoji: πŸ“
4
  colorFrom: gray
5
  colorTo: red
6
  sdk: gradio
app.py CHANGED
@@ -16,9 +16,6 @@ def cleanup_temp_directories():
16
 
17
 
18
  def stl2glb(glb_file):
19
- if not glb_file.endswith(".stl"):
20
- raise gr.Error("Please upload a .stl file")
21
-
22
  temp_dir = pathlib.Path(tempfile.mkdtemp())
23
  temp_directories.append(temp_dir)
24
 
 
16
 
17
 
18
  def stl2glb(glb_file):
 
 
 
19
  temp_dir = pathlib.Path(tempfile.mkdtemp())
20
  temp_directories.append(temp_dir)
21