Download main.py from mgbam/yeye: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/spaces/mgbam/yeye/resolve/0730dbb5c010247659ed4e46ebac93cb78309efb/main.py
- Command line
-
hf download hf://spaces/mgbam/yeye@0730dbb5c010247659ed4e46ebac93cb78309efb/main.py
-
curl -L -o main.py https://huggingface.co/spaces/mgbam/yeye/resolve/0730dbb5c010247659ed4e46ebac93cb78309efb/main.py
654 Bytes
| import gradio as gr | |
| from ui_components import create_interface | |
| from theme_config import THEME_CONFIGS, get_saved_theme | |
| import os | |
| from media_processing import cleanup_all_temp_media_on_startup | |
| def main(): | |
| # Clean up any orphaned temporary files from previous runs | |
| cleanup_all_temp_media_on_startup() | |
| current_theme_name = get_saved_theme() | |
| current_theme = THEME_CONFIGS[current_theme_name]["theme"] | |
| demo = create_interface(current_theme) | |
| demo.queue(api_open=False, default_concurrency_limit=20).launch( | |
| show_api=False, | |
| ssr_mode=True, | |
| mcp_server=False | |
| ) | |
| if __name__ == "__main__": | |
| main() |