AIencoder commited on
Commit
365df26
·
verified ·
1 Parent(s): 7dae043

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -10
app.py CHANGED
@@ -472,13 +472,7 @@ def create_ui():
472
  cached = get_cached_models()
473
  total_models = len(MODELS)
474
 
475
- css = """
476
- .main-header { text-align: center; margin-bottom: 20px; }
477
- .tool-description { color: #666; font-size: 0.9em; margin-bottom: 10px; }
478
- .status-bar { padding: 10px; border-radius: 8px; margin-bottom: 15px; }
479
- """
480
-
481
- with gr.Blocks(title="Axon v26", css=css) as demo:
482
  # Header
483
  gr.HTML("""
484
  <div class="main-header">
@@ -647,7 +641,7 @@ def create_ui():
647
  shell_desc = gr.Textbox(lines=3, placeholder="Describe what you want to do...", label="Description")
648
  shell_type = gr.Dropdown(choices=["Bash", "PowerShell", "Zsh", "Fish"], value="Bash", label="Shell")
649
  shell_btn = gr.Button("Generate", variant="primary")
650
- shell_output = gr.Code(label="Generated Command", language="bash")
651
 
652
  # === CRON TAB ===
653
  with gr.Tab("⏰ Cron"):
@@ -689,7 +683,7 @@ def create_ui():
689
  format_from = gr.Dropdown(choices=["JSON", "YAML", "XML", "CSV", "TOML"], value="JSON", label="From")
690
  format_to = gr.Dropdown(choices=["JSON", "YAML", "XML", "CSV", "TOML"], value="YAML", label="To")
691
  format_btn = gr.Button("Convert", variant="primary")
692
- format_output = gr.Code(label="Converted Data", language="yaml")
693
 
694
  # === REFACTOR TAB (NEW) ===
695
  with gr.Tab("🎨 Refactor"):
@@ -809,4 +803,8 @@ if __name__ == "__main__":
809
 
810
  print("\n🚀 Starting Axon...")
811
  demo = create_ui()
812
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
 
 
 
 
472
  cached = get_cached_models()
473
  total_models = len(MODELS)
474
 
475
+ with gr.Blocks(title="Axon v26") as demo:
 
 
 
 
 
 
476
  # Header
477
  gr.HTML("""
478
  <div class="main-header">
 
641
  shell_desc = gr.Textbox(lines=3, placeholder="Describe what you want to do...", label="Description")
642
  shell_type = gr.Dropdown(choices=["Bash", "PowerShell", "Zsh", "Fish"], value="Bash", label="Shell")
643
  shell_btn = gr.Button("Generate", variant="primary")
644
+ shell_output = gr.Code(label="Generated Command", language="shell")
645
 
646
  # === CRON TAB ===
647
  with gr.Tab("⏰ Cron"):
 
683
  format_from = gr.Dropdown(choices=["JSON", "YAML", "XML", "CSV", "TOML"], value="JSON", label="From")
684
  format_to = gr.Dropdown(choices=["JSON", "YAML", "XML", "CSV", "TOML"], value="YAML", label="To")
685
  format_btn = gr.Button("Convert", variant="primary")
686
+ format_output = gr.Code(label="Converted Data", language="python")
687
 
688
  # === REFACTOR TAB (NEW) ===
689
  with gr.Tab("🎨 Refactor"):
 
803
 
804
  print("\n🚀 Starting Axon...")
805
  demo = create_ui()
806
+ demo.launch(server_name="0.0.0.0", server_port=7860, css="""
807
+ .main-header { text-align: center; margin-bottom: 20px; }
808
+ .tool-description { color: #666; font-size: 0.9em; margin-bottom: 10px; }
809
+ .status-bar { padding: 10px; border-radius: 8px; margin-bottom: 15px; }
810
+ """)