Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -287,6 +287,9 @@ def main():
|
|
287 |
min_value=1, max_value=10, value=DEFAULT_NUM_SAMPLES,
|
288 |
)
|
289 |
|
|
|
|
|
|
|
290 |
submit = st.form_submit_button('Run')
|
291 |
st.session_state.submit = st.session_state.submit or submit
|
292 |
if submit:
|
|
|
287 |
min_value=1, max_value=10, value=DEFAULT_NUM_SAMPLES,
|
288 |
)
|
289 |
|
290 |
+
if not GPU_AVAILABLE:
|
291 |
+
st.warning('No GPU available. Sampling might be very slow.')
|
292 |
+
|
293 |
submit = st.form_submit_button('Run')
|
294 |
st.session_state.submit = st.session_state.submit or submit
|
295 |
if submit:
|