Spaces:
Sleeping
Sleeping
File size: 782 Bytes
6d6b8af |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
"""
[DEPRECATED] Web Interface for Codette
This file is deprecated. Please use the unified interface at /codette_interface.py instead.
Example usage:
from codette_interface import create_interface
app = create_interface("web")
app.run()
"""
import warnings
warnings.warn(
"This interface is deprecated. Please use the unified interface at /codette_interface.py instead.",
DeprecationWarning,
stacklevel=2
)
from codette_interface import create_interface
# Provide backwards compatibility
def create_web_app():
"""Backwards compatibility wrapper"""
warnings.warn(
"Use create_interface('web') instead of create_web_app()",
DeprecationWarning,
stacklevel=2
)
return create_interface("web") |