Spaces:
Sleeping
Sleeping
Sync from GitHub
Browse filesFiles changed (2)
- src/__main__.py+1-8
- src/interface.py+7-1
34 unmodified lines353637383940414243443839406 unmodified lines474849575051525334 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) app.launch(footer_links=[]) # We return the app instance for potential use in autoreload scenarios. return app
4 unmodified lines567891011121314151610 unmodified lines27282924303132334 unmodified lines
from .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 lines compile_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: 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