Spaces:
Build error
Build error
acecalisto3
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
import tkinter as tk
|
2 |
-
|
|
|
|
|
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 |
-
|
67 |
-
|
68 |
-
|
|
|
|
|
|
|
|
|
|
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()
|