ai / app.py
hadadrjt's picture
ai: Refactor the code.
d17e7ef
raw
history blame contribute delete
577 Bytes
#
# SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
# SPDX-License-Identifier: Apache-2.0
#
from src.main.gradio import launch_ui # Import the function responsible for starting the graphical user interface
# The following condition checks if this script is being run as the main program.
# If true, it calls the launch_ui function to start the user interface.
# This ensures that the UI only launches when this file is executed directly, not when imported as a module.
if __name__ == "__main__":
launch_ui() # Start the graphical user interface for the application