Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from flask import jsonify
|
| 2 |
# from gameload import upload_game_docs
|
| 3 |
# import chat
|
| 4 |
# import os
|
|
@@ -44,7 +44,7 @@ def health_check(name):
|
|
| 44 |
|
| 45 |
health_check_gr = gradio.Interface(
|
| 46 |
fn=health_check,
|
| 47 |
-
inputs=
|
| 48 |
outputs="text"
|
| 49 |
)
|
| 50 |
|
|
@@ -56,7 +56,7 @@ initialize_game_gr = gradio.Interface(
|
|
| 56 |
|
| 57 |
play_game_gr = gradio.Interface(
|
| 58 |
fn=play_game,
|
| 59 |
-
inputs="text",
|
| 60 |
outputs="text"
|
| 61 |
)
|
| 62 |
demo = gradio.TabbedInterface([health_check_gr, play_game_gr, initialize_game_gr], ["Health Check", "Play Game", "Initialize game"])
|
|
|
|
| 1 |
+
#from flask import jsonify
|
| 2 |
# from gameload import upload_game_docs
|
| 3 |
# import chat
|
| 4 |
# import os
|
|
|
|
| 44 |
|
| 45 |
health_check_gr = gradio.Interface(
|
| 46 |
fn=health_check,
|
| 47 |
+
inputs="text",
|
| 48 |
outputs="text"
|
| 49 |
)
|
| 50 |
|
|
|
|
| 56 |
|
| 57 |
play_game_gr = gradio.Interface(
|
| 58 |
fn=play_game,
|
| 59 |
+
inputs=["text","text", "text"],
|
| 60 |
outputs="text"
|
| 61 |
)
|
| 62 |
demo = gradio.TabbedInterface([health_check_gr, play_game_gr, initialize_game_gr], ["Health Check", "Play Game", "Initialize game"])
|