diff --git a/src/streamlit_app.py b/src/streamlit_app.py index d712c39..fc04318 100644 --- a/src/streamlit_app.py +++ b/src/streamlit_app.py @@ -180,6 +180,8 @@ with col1: with col1_browse1: if st.button("Browse", key='source_browse'): try: + import tkinter as tk + from tkinter import filedialog root = tk.Tk() root.withdraw() path = filedialog.askdirectory(title="Select Source Directory") @@ -200,6 +202,8 @@ with col1: with col2_browse1: if st.button("Browse", key='dest_browse'): try: + import tkinter as tk + from tkinter import filedialog root = tk.Tk() root.withdraw() path = filedialog.askdirectory(title="Select Destination Directory") @@ -237,6 +241,8 @@ with col2: with col3_browse1: if st.button("Browse", key='password_browse'): try: + import tkinter as tk + from tkinter import filedialog root = tk.Tk() root.withdraw() path = filedialog.askopenfilename(