PhDFlo commited on
Commit
1f14419
·
1 Parent(s): 77dbc93

docstring compute_square function

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -2,6 +2,14 @@ import gradio as gr
2
  from modal_app import app, square
3
 
4
  def compute_square(x):
 
 
 
 
 
 
 
 
5
  with app.run():
6
  return square.remote(float(x))
7
 
 
2
  from modal_app import app, square
3
 
4
  def compute_square(x):
5
+ """Compute the square of a number.
6
+
7
+ Args:
8
+ x (float | int): The number to square.
9
+
10
+ Returns:
11
+ float: The square of the input number.
12
+ """
13
  with app.run():
14
  return square.remote(float(x))
15