dunlp commited on
Commit
f5e08f1
·
verified ·
1 Parent(s): 8f9383e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
- import os
3
- #from utils.steps import *
4
 
5
  # Global variables to store inputs
6
  testphase = None
@@ -58,7 +58,7 @@ def validate_and_run(phase, root_dir, templates_dir):
58
  with gr.Blocks() as app:
59
  gr.Markdown("# Folder Creation Tool")
60
 
61
- phase_input = gr.Dropdown(choices=inputPhases.values(), label="Select Phase")
62
  root_dir_input = gr.Textbox(label="Root Directory", placeholder="Enter the root directory path")
63
  templates_dir_input = gr.Textbox(label="Templates Directory", placeholder="Enter the templates directory path")
64
 
 
1
  import gradio as gr
2
+ from utils.steps import copyPasteTemplates # Keeping the necessary parts
3
+ from utils.options import inputPhases # Importing inputPhases for phase dropdown
4
 
5
  # Global variables to store inputs
6
  testphase = None
 
58
  with gr.Blocks() as app:
59
  gr.Markdown("# Folder Creation Tool")
60
 
61
+ phase_input = gr.Dropdown(choices=list(inputPhases.values()), label="Select Phase")
62
  root_dir_input = gr.Textbox(label="Root Directory", placeholder="Enter the root directory path")
63
  templates_dir_input = gr.Textbox(label="Templates Directory", placeholder="Enter the templates directory path")
64