Spaces:
Sleeping
Sleeping
File size: 493 Bytes
14aebdf ea52793 6b034e0 14aebdf ea52793 6b034e0 14aebdf 6b034e0 14aebdf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
from interface import create_interface
from model_utils import get_model
def main():
print("Loading model...")
model = get_model()
if model is None:
print("Warning: Model could not be loaded. Please ensure 'best_model.pkl' exists.")
else:
print("Model loaded successfully!")
print("Creating interface...")
demo = create_interface()
print("Launching application...")
demo.launch(share=True)
if __name__ == "__main__":
main()
|