Update app.py
Browse files
app.py
CHANGED
@@ -98,6 +98,8 @@ class ModelConverter:
|
|
98 |
env = os.environ.copy()
|
99 |
env["TRANSFORMERS_VERBOSITY"] = "debug"
|
100 |
# Build command with debug
|
|
|
|
|
101 |
cmd = [
|
102 |
sys.executable,
|
103 |
"-m", "scripts.convert",
|
@@ -173,4 +175,4 @@ def main():
|
|
173 |
except Exception as e:
|
174 |
logger.exception(e); st.error(f"Error: {e}")
|
175 |
|
176 |
-
if __name__ == "__main__": main()
|
|
|
98 |
env = os.environ.copy()
|
99 |
env["TRANSFORMERS_VERBOSITY"] = "debug"
|
100 |
# Build command with debug
|
101 |
+
# Build conversion command
|
102 |
+
# Rely on TRANSFORMERS_VERBOSITY for logging; remove unsupported debug flag
|
103 |
cmd = [
|
104 |
sys.executable,
|
105 |
"-m", "scripts.convert",
|
|
|
175 |
except Exception as e:
|
176 |
logger.exception(e); st.error(f"Error: {e}")
|
177 |
|
178 |
+
if __name__ == "__main__": main()
|