Spaces:
Runtime error
Runtime error
Commit
·
175b3fd
1
Parent(s):
c0e96e4
Add readonly prompt
Browse files
app.py
CHANGED
@@ -114,7 +114,13 @@ with gr.Blocks(theme=theme) as iface:
|
|
114 |
info="if using a private Giskard Hub on Hugging Face Spaces",
|
115 |
)
|
116 |
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
with gr.Row():
|
119 |
run_btn = gr.Button("Run", variant="primary")
|
120 |
run_btn.click(start_ml_worker, [url_input, api_key_input, hf_token_input], output)
|
|
|
114 |
info="if using a private Giskard Hub on Hugging Face Spaces",
|
115 |
)
|
116 |
|
117 |
+
with gr.Column():
|
118 |
+
output = gr.Textbox(label="Status")
|
119 |
+
if READONLY:
|
120 |
+
gr.Textbox("You are browsering a read-only 🐢 Giskard ML worker instance. ", container=False)
|
121 |
+
gr.Textbox("Please duplicate this space to configure your own Giskard ML worker.", container=False)
|
122 |
+
gr.DuplicateButton(value="Duplicate Space for 🐢 Giskard ML worker", size='lg', variant="primary")
|
123 |
+
|
124 |
with gr.Row():
|
125 |
run_btn = gr.Button("Run", variant="primary")
|
126 |
run_btn.click(start_ml_worker, [url_input, api_key_input, hf_token_input], output)
|