Carbaz commited on
Commit
17b6e64
·
verified ·
1 Parent(s): cc7a977

Sync from GitHub

Browse files
Files changed (2) hide show
  1. src/__main__.py +3 -3
  2. src/interface.py +1 -1
src/__main__.py CHANGED
@@ -48,11 +48,11 @@ def main():
48
  _logger.info(f'AVAILABLE MODELS: {models}')
49
  # Prepare the interface configuration based.
50
  interface_config = {"models": models, "compile_stage": compile_stage,
51
- "optimize_function": optimize_function,
52
- "compile_path": BUILD_DIR}
53
  if compile_stage:
54
  interface_config.update({"compile_extension": compile_extension,
55
- "test_extension": test_extension})
 
56
  app = get_interface(**interface_config)
57
  app.launch(footer_links=[], css=css)
58
  # We return the app instance for potential use in autoreload scenarios.
 
48
  _logger.info(f'AVAILABLE MODELS: {models}')
49
  # Prepare the interface configuration based.
50
  interface_config = {"models": models, "compile_stage": compile_stage,
51
+ "optimize_function": optimize_function}
 
52
  if compile_stage:
53
  interface_config.update({"compile_extension": compile_extension,
54
+ "test_extension": test_extension,
55
+ "compile_path": BUILD_DIR})
56
  app = get_interface(**interface_config)
57
  app.launch(footer_links=[], css=css)
58
  # We return the app instance for potential use in autoreload scenarios.
src/interface.py CHANGED
@@ -18,7 +18,7 @@ def get_interface(optimize_function, compile_stage=False,
18
  compile_extension=_compile_extension,
19
  test_extension=_test_extension,
20
  default_platform="Windows",
21
- compile_path="compile",
22
  models=["gpt-5.1-codex-mini"]):
23
  """Get the Gradio Blocks interface for the AI Python C Extensions Generator."""
24
  with Blocks(title="AI Python C Extensions Generator") as ui:
 
18
  compile_extension=_compile_extension,
19
  test_extension=_test_extension,
20
  default_platform="Windows",
21
+ compile_path="compiled",
22
  models=["gpt-5.1-codex-mini"]):
23
  """Get the Gradio Blocks interface for the AI Python C Extensions Generator."""
24
  with Blocks(title="AI Python C Extensions Generator") as ui: