Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ class OnnxModelConverter:
|
|
10 |
self.model = None
|
11 |
def download_file(self,file_path):
|
12 |
if not os.path.exists(file_path):
|
13 |
-
|
14 |
-
|
15 |
return gr.File(file_path, label="Download ONNX File")
|
16 |
|
17 |
|
|
|
10 |
self.model = None
|
11 |
def download_file(self,file_path):
|
12 |
if not os.path.exists(file_path):
|
13 |
+
with open(file_path, "w") as file:
|
14 |
+
file.write("This is a test ONNX model.")
|
15 |
return gr.File(file_path, label="Download ONNX File")
|
16 |
|
17 |
|