fingpt_gpt / app.py
Starfish55's picture
Upload 6 files
869805c verified
raw
history blame contribute delete
624 Bytes
import importlib
_module = importlib.import_module('app_claude_41')
# Expose a Gradio Blocks/Interface as `demo` at module scope for Spaces
# Try common names or build via factory
demo = None
for attr_name in ('demo', 'app', 'iface', 'interface'):
if hasattr(_module, attr_name):
demo = getattr(_module, attr_name)
break
if demo is None:
for factory_name in ('create_demo', 'build_demo', 'get_demo'):
if hasattr(_module, factory_name):
demo = getattr(_module, factory_name)()
break
# If the original app is Streamlit, switch SDK to Streamlit in Space settings.