adowu commited on
Commit
20dc0d7
·
verified ·
1 Parent(s): 0edd3ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -458,7 +458,7 @@ def github_tool(
458
 
459
 
460
  with gr.Blocks() as demo:
461
- gr.Markdown("# GitHub Tool Plugingit (Simplified Interface)") # More descriptive title
462
 
463
  with gr.Column():
464
  action = gr.Dropdown(
@@ -495,9 +495,10 @@ with gr.Blocks() as demo:
495
  )
496
  repo_name = gr.Textbox(label="Repository Name")
497
  template_name = gr.Dropdown(
498
- choices=list(PROJECT_TEMPLATES.keys()),
499
  label="Project Template",
500
- allow_none=True, # Allow no template to be selected
 
501
  )
502
  branch = gr.Textbox(label="Branch", value="main")
503
  path = gr.Textbox(label="File Path")
 
458
 
459
 
460
  with gr.Blocks() as demo:
461
+ gr.Markdown("# GitHub Tool Plugingit (Simplified Interface)")
462
 
463
  with gr.Column():
464
  action = gr.Dropdown(
 
495
  )
496
  repo_name = gr.Textbox(label="Repository Name")
497
  template_name = gr.Dropdown(
498
+ choices=[""] + list(PROJECT_TEMPLATES.keys()), # Add "" as a choice
499
  label="Project Template",
500
+ value="", # Set default value to "" (no selection)
501
+ allow_custom_value=True, # Use allow_custom_value instead of allow_none
502
  )
503
  branch = gr.Textbox(label="Branch", value="main")
504
  path = gr.Textbox(label="File Path")