File size: 541 Bytes
5aa6736 1d7d4a2 5aa6736 1d7d4a2 5aa6736 1d7d4a2 5aa6736 aacb585 5aa6736 aacb585 5aa6736 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | from utils.warnings import suppress_warnings
from core.model_loader import load_model
from ui.theme import OrangeRedTheme
from ui.styles import CSS_STYLE
from ui.layout import build_ui
def main():
suppress_warnings()
model, processor = load_model()
theme = OrangeRedTheme()
demo = build_ui(model, processor)
demo.queue().launch(
theme=theme,
css=CSS_STYLE,
show_error=True,
server_name="0.0.0.0",
server_port=7860,
debug=True
)
if __name__ == "__main__":
main() |