Nam Fam commited on
Commit ·
e7caea2
1
Parent(s): 0947551
update app.py
Browse files
app.py
CHANGED
|
@@ -119,13 +119,13 @@ def build_ui():
|
|
| 119 |
gr.Markdown("# 🚀 RunNow: Instant Python Code Execution\n\nRun any Python code instantly in the cloud with dynamic dependency installation!")
|
| 120 |
with gr.Row():
|
| 121 |
with gr.Column(scale=1):
|
| 122 |
-
api_key_input = gr.Textbox(label="API Key
|
| 123 |
-
dependencies_input = gr.Textbox(label="Dependencies
|
| 124 |
-
code_input = gr.Textbox(label="
|
| 125 |
run_btn = gr.Button("Run", variant="primary")
|
| 126 |
with gr.Column(scale=2):
|
| 127 |
all_vars_state = gr.State(value={})
|
| 128 |
-
variable_filter = gr.CheckboxGroup(label="
|
| 129 |
|
| 130 |
# Wrap output area in a container with custom styling
|
| 131 |
with gr.Column(elem_classes=["output-container"]):
|
|
|
|
| 119 |
gr.Markdown("# 🚀 RunNow: Instant Python Code Execution\n\nRun any Python code instantly in the cloud with dynamic dependency installation!")
|
| 120 |
with gr.Row():
|
| 121 |
with gr.Column(scale=1):
|
| 122 |
+
api_key_input = gr.Textbox(label="Runnow API Key", value=DEFAULT_RUNNOW_API_KEY, type="password", lines=1, placeholder="Nhập API key...")
|
| 123 |
+
dependencies_input = gr.Textbox(label="Dependencies", value="pip install pandas", lines=3, placeholder="pip install numpy\ngit clone https://github.com/user/repo.git")
|
| 124 |
+
code_input = gr.Textbox(label="Python Code", value=example_code, lines=14, show_copy_button=True, elem_id="code_input")
|
| 125 |
run_btn = gr.Button("Run", variant="primary")
|
| 126 |
with gr.Column(scale=2):
|
| 127 |
all_vars_state = gr.State(value={})
|
| 128 |
+
variable_filter = gr.CheckboxGroup(label="Choose Outputs to View", visible=False, interactive=True)
|
| 129 |
|
| 130 |
# Wrap output area in a container with custom styling
|
| 131 |
with gr.Column(elem_classes=["output-container"]):
|