chansung commited on
Commit
6d90bf4
·
1 Parent(s): 43b249a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -13
app.py CHANGED
@@ -65,17 +65,20 @@ with gr.Blocks() as demo:
65
  Start typing below to see the output.
66
  """)
67
 
68
- gr.Markdown(
69
- """
70
- GCP project ID
71
- """)
72
- gcp_project_id = gr.Textbox()
73
-
74
- gr.Markdown(
75
- """
76
- GCP region
77
- """)
78
- gcp_region = gr.Textbox()
 
 
 
79
 
80
  gr.Markdown(
81
  """
@@ -84,12 +87,12 @@ with gr.Blocks() as demo:
84
  with gr.Row():
85
  min_nodes = gr.Slider(
86
  label="minimum number of nodes",
87
- minimum=1
88
  maximum=10)
89
 
90
  max_nodes = gr.Slider(
91
  label="maximum number of nodes",
92
- minimum=1
93
  maximum=10)
94
 
95
  btn = gr.Button(value="Ready to Deploy!")
 
65
  Start typing below to see the output.
66
  """)
67
 
68
+ with gr.Row():
69
+ gr.Markdown(
70
+ """
71
+ GCP project ID
72
+ """)
73
+ gcp_project_id = gr.Textbox()
74
+
75
+ gr.Markdown(
76
+ """
77
+ GCP region
78
+ """)
79
+ gcp_region = gr.Dropdown(
80
+ ["us-central1", "asia‑east1", "asia-northeast1"]
81
+ )
82
 
83
  gr.Markdown(
84
  """
 
87
  with gr.Row():
88
  min_nodes = gr.Slider(
89
  label="minimum number of nodes",
90
+ minimum=1,
91
  maximum=10)
92
 
93
  max_nodes = gr.Slider(
94
  label="maximum number of nodes",
95
+ minimum=1,
96
  maximum=10)
97
 
98
  btn = gr.Button(value="Ready to Deploy!")