Spaces:
Sleeping
Sleeping
Sync from GitHub
Browse filesFiles changed (2)
- src/__main__.py+1-8
- src/interface.py+7-1
34 unmodified lines353637383940414243444546476 unmodified lines5455565758596034 unmodified lines_logger.info(f'COMPILE DIRECTORY SET TO: .{sep}{BUILD_DIR}')# CSS styles for the interface, defining background colors for C and Python code areas.css = """.c_ext {background-color: #050;}.python {background-color: #306998;}"""def main():"""Launch the AI Python C Extensions Generator application."""_logger.info('STARTING AI PYTHON C EXTENSIONS GENERATOR...')6 unmodified lines"test_extension": test_extension,"compile_path": BUILD_DIR})app = get_interface(**interface_config)app.launch(footer_links=[], css=css)# We return the app instance for potential use in autoreload scenarios.return app34 unmodified lines3536373839406 unmodified lines4748495051525334 unmodified lines_logger.info(f'COMPILE DIRECTORY SET TO: .{sep}{BUILD_DIR}')def main():"""Launch the AI Python C Extensions Generator application."""_logger.info('STARTING AI PYTHON C EXTENSIONS GENERATOR...')6 unmodified lines"test_extension": test_extension,"compile_path": BUILD_DIR})app = get_interface(**interface_config)app.launch(footer_links=[])# We return the app instance for potential use in autoreload scenarios.return app
4 unmodified lines567891010 unmodified lines212223242526274 unmodified linesfrom .examples import example_dictdef _compile_extension():return "COMPILE_EXTENSION PLACEHOLDER"10 unmodified linescompile_path="compiled",models=["gpt-5.1-codex-mini"]):"""Get the Gradio Blocks interface for the AI Python C Extensions Generator."""with Blocks(title="AI Python C Extensions Generator") as ui:compile_path_st = State(value=compile_path)Markdown("## Convert code from Python to C Extension")4 unmodified lines567891011121314151610 unmodified lines272829303132334 unmodified linesfrom .examples import example_dict# CSS styles for the interface, defining background colors for C and Python code areas.css = """.c_ext {background-color: #050;}.python {background-color: #306998;}"""def _compile_extension():return "COMPILE_EXTENSION PLACEHOLDER"10 unmodified linescompile_path="compiled",models=["gpt-5.1-codex-mini"]):"""Get the Gradio Blocks interface for the AI Python C Extensions Generator."""with Blocks(title="AI Python C Extensions Generator", css=css) as ui:compile_path_st = State(value=compile_path)Markdown("## Convert code from Python to C Extension")
src/__main__.py+1-8
src/interface.py+7-1