Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -167,7 +167,7 @@ with gr.Blocks() as demo2:
|
|
167 |
|
168 |
with gr.Row():
|
169 |
provider_selector = gr.Dropdown(
|
170 |
-
providers,
|
171 |
label="select cloud provider",
|
172 |
interactive=True,
|
173 |
)
|
@@ -187,7 +187,7 @@ with gr.Blocks() as demo2:
|
|
187 |
label="select compute instance type",
|
188 |
interactive=True
|
189 |
)
|
190 |
-
|
191 |
|
192 |
gr.TabbedInterface(
|
193 |
[demoInterface, demo, demo2], ["Try-out", "๐ Deploy on GCP", " Deploy on ๐ค Endpoint"]
|
|
|
167 |
|
168 |
with gr.Row():
|
169 |
provider_selector = gr.Dropdown(
|
170 |
+
choices=providers,
|
171 |
label="select cloud provider",
|
172 |
interactive=True,
|
173 |
)
|
|
|
187 |
label="select compute instance type",
|
188 |
interactive=True
|
189 |
)
|
190 |
+
region_selector.change(update_compute_options, inputs=[provider_selector, region_selector], outputs=compute_selector)
|
191 |
|
192 |
gr.TabbedInterface(
|
193 |
[demoInterface, demo, demo2], ["Try-out", "๐ Deploy on GCP", " Deploy on ๐ค Endpoint"]
|