Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import
|
| 3 |
-
|
| 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 |
|