Nathan12 commited on
Commit
07cb9a1
·
1 Parent(s): e167cea

update compressor

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +1 -1
  2. app.py +1 -1
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -159,7 +159,7 @@ def main_interface(model_name, sparsity, action):
159
  compressed_size = get_model_size(compressed_path)
160
  size_plot = create_size_comparison_plot(original_size, compressed_size)
161
 
162
- return compressed_path, size_plot
163
  finally:
164
  # Clean up temporary file
165
  if os.path.exists(temp_path):
 
159
  compressed_size = get_model_size(compressed_path)
160
  size_plot = create_size_comparison_plot(original_size, compressed_size)
161
 
162
+ return size_plot
163
  finally:
164
  # Clean up temporary file
165
  if os.path.exists(temp_path):
app.py CHANGED
@@ -159,7 +159,7 @@ def main_interface(model_name, sparsity, action):
159
  compressed_size = get_model_size(compressed_path)
160
  size_plot = create_size_comparison_plot(original_size, compressed_size)
161
 
162
- return compressed_path, size_plot
163
  finally:
164
  # Clean up temporary file
165
  if os.path.exists(temp_path):
 
159
  compressed_size = get_model_size(compressed_path)
160
  size_plot = create_size_comparison_plot(original_size, compressed_size)
161
 
162
+ return size_plot
163
  finally:
164
  # Clean up temporary file
165
  if os.path.exists(temp_path):