Spaces:
Runtime error
Runtime error
File size: 418 Bytes
f626979 ae5d47a 61b2e8e ae5d47a 61b2e8e ae5d47a 61b2e8e f626979 61b2e8e f626979 61b2e8e ae5d47a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
def process_input(input_value):
return f"Slider Value: {input_value}"
# Create the slider component
slider = gr.components.Slider(minimum=0, maximum=1, step=0.01, label="Rotated Slider")
# Define the interface
iface = gr.Interface(
fn=process_input,
inputs=slider,
outputs="text",
css=".slider_container { transform: rotate(30deg); }"
)
# Launch the interface
iface.launch() |