Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| import os | |
| my_token = os.getenv("HF_TOKEN") | |
| hide_stuff_css = """ | |
| footer {display: none !important;} | |
| .gradio-container {min-height: 0px !important;} | |
| #component-0 {border: none !important;} | |
| .show-api {display: none !important;} | |
| .built-with {display: none !important;} | |
| """ | |
| try: | |
| demo = gr.load( | |
| name="Math12393/Tom-The-Music-AI-Private", | |
| src="spaces", | |
| token=my_token | |
| ) | |
| demo.launch(css=hide_stuff_css) | |
| except Exception as e: | |
| print(f"Error: {e}") |