Spaces:
Runtime error
Runtime error
File size: 470 Bytes
0d7ff87 4c5b4cf 0d7ff87 4c5b4cf d29336a 4c5b4cf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import math
import gradio as gr
def tan_degrees(angle):
"""Calculate the tangent of an angle in degrees."""
return math.tan(math.radians(angle))
tan_degrees_interface = gr.Interface(
fn=tan_degrees,
inputs=gr.Number(label="Angle (degrees)"),
outputs="number",
title="Tangent Calculator",
description="Calculate the tangent of an angle in degrees. Enter an angle (e.g., 45) to get its tangent value.",
examples=[[0], [45], [60], [90]]
)
|