laxsvips commited on
Commit
6ee45eb
·
1 Parent(s): f994180

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -32,8 +32,7 @@ import gradio
32
 
33
  # @app.route('/health_check', methods=['GET'])
34
  def health_check(name):
35
- response = {'message': 'Site is healthy ' + name}
36
- return jsonify(response)
37
 
38
  # @app.route('/load_game', methods=['GET'])
39
  # def load_game():
@@ -44,7 +43,7 @@ def health_check(name):
44
  gradio_interface = gradio.Interface(
45
  fn=health_check,
46
  inputs="text",
47
- outputs="json"
48
  )
49
  gradio_interface.launch()
50
 
 
32
 
33
  # @app.route('/health_check', methods=['GET'])
34
  def health_check(name):
35
+ return "Hello " + name + "!"
 
36
 
37
  # @app.route('/load_game', methods=['GET'])
38
  # def load_game():
 
43
  gradio_interface = gradio.Interface(
44
  fn=health_check,
45
  inputs="text",
46
+ outputs="text"
47
  )
48
  gradio_interface.launch()
49