Spaces:
Sleeping
Sleeping
Update app2.py
Browse files
app2.py
CHANGED
|
@@ -34,7 +34,7 @@ select = pn.widgets.RadioButtonGroup(value="⭐", options=["⭐", "🐘"], name=
|
|
| 34 |
|
| 35 |
# Define a callback to display the selected value
|
| 36 |
def display_selected_value(event):
|
| 37 |
-
print(f"Selected value: {event.new}")
|
| 38 |
|
| 39 |
# Attach the callback to the value_change event of the RadioButtonGroup
|
| 40 |
select.param.watch(display_selected_value, 'value')
|
|
|
|
| 34 |
|
| 35 |
# Define a callback to display the selected value
|
| 36 |
def display_selected_value(event):
|
| 37 |
+
print(f"Selected value: {event.new}", flush = True)
|
| 38 |
|
| 39 |
# Attach the callback to the value_change event of the RadioButtonGroup
|
| 40 |
select.param.watch(display_selected_value, 'value')
|