Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,19 +25,25 @@ def health_check(name):
|
|
| 25 |
health_check_gr = gradio.Interface(
|
| 26 |
fn=health_check,
|
| 27 |
inputs="text",
|
| 28 |
-
outputs="text"
|
|
|
|
|
|
|
| 29 |
)
|
| 30 |
|
| 31 |
initialize_game_gr = gradio.Interface(
|
| 32 |
fn=initialize_game,
|
| 33 |
inputs=["text","text"],
|
| 34 |
-
outputs="text"
|
|
|
|
|
|
|
| 35 |
)
|
| 36 |
|
| 37 |
play_game_gr = gradio.Interface(
|
| 38 |
fn=play_game,
|
| 39 |
inputs=["text","text", "text"],
|
| 40 |
-
outputs="text"
|
|
|
|
|
|
|
| 41 |
)
|
| 42 |
|
| 43 |
genesis_app = gradio.TabbedInterface([health_check_gr, initialize_game_gr, play_game_gr], ["Health Check", "Initialize game", "Play Game"])
|
|
|
|
| 25 |
health_check_gr = gradio.Interface(
|
| 26 |
fn=health_check,
|
| 27 |
inputs="text",
|
| 28 |
+
outputs="text",
|
| 29 |
+
title="Health Check for Genesis APIs",
|
| 30 |
+
description="An API to check if the API is working"
|
| 31 |
)
|
| 32 |
|
| 33 |
initialize_game_gr = gradio.Interface(
|
| 34 |
fn=initialize_game,
|
| 35 |
inputs=["text","text"],
|
| 36 |
+
outputs="text",
|
| 37 |
+
title="Initialize Game",
|
| 38 |
+
description="An API to initialize the game. This is executed ONLY when a user starts a game"
|
| 39 |
)
|
| 40 |
|
| 41 |
play_game_gr = gradio.Interface(
|
| 42 |
fn=play_game,
|
| 43 |
inputs=["text","text", "text"],
|
| 44 |
+
outputs="text",
|
| 45 |
+
title="Play Game",
|
| 46 |
+
description="An API for the user to interact with the LLM"
|
| 47 |
)
|
| 48 |
|
| 49 |
genesis_app = gradio.TabbedInterface([health_check_gr, initialize_game_gr, play_game_gr], ["Health Check", "Initialize game", "Play Game"])
|