Spaces:
Runtime error

Nam Fam commited on
Commit
e7caea2
·
1 Parent(s): 0947551

update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 (bảo mật)", value=DEFAULT_RUNNOW_API_KEY, type="password", lines=1, placeholder="Nhập API key...")
123
- dependencies_input = gr.Textbox(label="Dependencies (e.g., pip install, git clone)", value="pip install pandas", lines=3, placeholder="pip install numpy\ngit clone https://github.com/user/repo.git")
124
- code_input = gr.Textbox(label="Your inference code (Python)", 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="Filter variables to display", visible=False, interactive=True)
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"]):