Skip to content

Commit

Permalink
Merge pull request #200 from Aydinhamedi/Alpha-b
Browse files Browse the repository at this point in the history
Alpha b
  • Loading branch information
Aydinhamedi authored Mar 14, 2024
2 parents c33775f + f5d0cf7 commit 768f8b3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
28 changes: 14 additions & 14 deletions Interface/GUI/Data/GUI_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@
# prep GUI
sg.theme("GrayGrayGray")
# Start
sg.popup_auto_close("Loading GUI...", non_blocking=True, auto_close_duration=2, no_titlebar=False)
sg.popup_auto_close(
"┌──────────┐\n Loading... \n└──────────┘",
non_blocking=True,
auto_close_duration=3,
no_titlebar=True,
line_width=32,
button_type=sg.POPUP_BUTTONS_NO_BUTTONS,
font=(None, 14, "bold"),
)
# pylib
try:
# import re # noqa: F401
Expand Down Expand Up @@ -78,7 +86,7 @@
sys.exit()
# global vars>>>
# CONST SYS
GUI_Ver = "0.9.4"
GUI_Ver = "0.9.5"
Model_dir = "Data/PAI_model" # without file extention
Database_dir = "Data/dataset.npy"
IMG_AF = ("JPEG", "PNG", "BMP", "TIFF", "JPG", "DCM", "DICOM")
Expand Down Expand Up @@ -140,7 +148,7 @@ def is_updated(self):
sg.Button("Browse", key="-BUTTON_BROWSE_IMG_dir-"),
],
[sg.Text("Log:", font=(None, 10, "bold"))],
[sg.Multiline(key="-OUTPUT_ST-", size=(54, 6), autoscroll=True)],
[sg.Multiline(key="-OUTPUT_ST-", size=(54, 6), autoscroll=True, disabled=True)],
[sg.Text("Result:", font=(None, 10, "bold"))],
[sg.Text(key="-OUTPUT_ST_R-", size=(50, 2), background_color="white")],
[
Expand Down Expand Up @@ -176,13 +184,7 @@ def is_updated(self):
GUI_layout_Tab_Sys_Info = [
[sg.Text("System Info:", font=(None, 10, "bold"))],
[
sg.Multiline(
"N/A",
key="-OUTPUT_ST_SYS_INFO-",
size=(54, 8),
autoscroll=True,
expand_y=True,
)
sg.Multiline("N/A", key="-OUTPUT_ST_SYS_INFO-", size=(54, 8), expand_y=True, disabled=True),
],
]

Expand Down Expand Up @@ -717,12 +719,10 @@ def UWL(Only_finalize: bool = False) -> None:
def main() -> None:
"""Main function for the GUI."""
# start
sg.SystemTray.notify("Pneumonia-Detection-Ai-GUI", f"Gui started.\nV{GUI_Ver}")
# sg.SystemTray.notify("Pneumonia-Detection-Ai-GUI", f"Gui started.\nV{GUI_Ver}")
if Debug_m:
sg.SystemTray.notify(
"Pneumonia-Detection-Ai-GUI",
f"Looks like you are a programmer\nWow.\nV{GUI_Ver}",
icon=sg.SYSTEM_TRAY_MESSAGE_ICON_WARNING,
"Pneumonia-Detection-Ai-GUI", f"Looks like you are a programmer\nWow.\nV{GUI_Ver}", icon=sg.SYSTEM_TRAY_MESSAGE_ICON_WARNING
)
sg.show_debugger_window()
# global
Expand Down
54 changes: 27 additions & 27 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
adabelief-tf==0.2.1
efficientnet==1.1.1
gpu-control==1.0.0
hyperas==0.4.1
imbalanced-learn==0.11.0
keras==2.10.0
keras-efficientnet-v2==1.2.2
loguru==0.5.3
matplotlib==3.7.2
model-profiler==1.1.8
numba==0.59.0
numpy==1.25.1
opencv-python==4.8.0.74
pandas==2.0.3
pillow==10.2.0
psutil==5.9.7
py-cpuinfo==9.0.0
pydicom==2.4.4
PySimpleGUI==4.60.5
requests==2.31.0
scikit-learn==1.3.0
scipy==1.11.1
seaborn==0.12.2
tabulate==0.9.0
tensorflow==2.10.1
tensorflow-addons==0.22.0
tqdm==4.66.2
adabelief-tf==0.2.1
efficientnet==1.1.1
gpu-control==1.0.0
hyperas==0.4.1
imbalanced-learn==0.11.0
keras==2.10.0
keras-efficientnet-v2==1.2.2
loguru==0.5.3
matplotlib==3.7.2
model-profiler==1.1.8
numba==0.59.0
numpy==1.25.1
opencv-python==4.8.0.74
pandas==2.0.3
pillow==10.2.0
psutil==5.9.7
py-cpuinfo==9.0.0
pydicom==2.4.4
PySimpleGUI==4.60.5
requests==2.31.0
scikit-learn==1.3.0
scipy==1.11.1
seaborn==0.12.2
tabulate==0.9.0
tensorflow==2.10.1
tensorflow-addons==0.22.0
tqdm==4.66.2

0 comments on commit 768f8b3

Please sign in to comment.