acecalisto3 commited on
Commit
4e123e1
·
verified ·
1 Parent(s): 17b294d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -1,5 +1,7 @@
1
  import tkinter as tk
2
- from tkinter import ttk, scrolledtext, filedialog
 
 
3
  from transformers import pipeline
4
  import logging
5
 
@@ -63,6 +65,10 @@ class CodeGeneratorApp:
63
  file.write(self.output_area.get("1.0", tk.END))
64
  logging.info(f"Code saved to {file_path}")
65
 
66
- root = tk.Tk()
67
- app = CodeGeneratorApp(root)
68
- root.mainloop()
 
 
 
 
 
1
  import tkinter as tk
2
+ import tkinter.ttk as ttk
3
+ import scrolledtext
4
+ import filedialog
5
  from transformers import pipeline
6
  import logging
7
 
 
65
  file.write(self.output_area.get("1.0", tk.END))
66
  logging.info(f"Code saved to {file_path}")
67
 
68
+ if __name__ == "__main__":
69
+ # Logging Setup
70
+ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
71
+
72
+ root = tk.Tk()
73
+ app = CodeGeneratorApp(root)
74
+ root.mainloop()