Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import chat
|
2 |
import gradio
|
3 |
-
import audio
|
4 |
|
5 |
def initialize_game(game_id, user_id, user_input):
|
6 |
result = chat.initialize_game(game_id, user_id, user_input)
|
@@ -18,10 +17,7 @@ def generate_image_prompt(game_id, user_id, user_input):
|
|
18 |
result = chat.generate_image_prompt(game_id, user_id, user_input)
|
19 |
return result
|
20 |
|
21 |
-
|
22 |
-
result = audio.generate_audio(input_text)
|
23 |
-
return result
|
24 |
-
|
25 |
# @app.route('/load_game', methods=['GET'])
|
26 |
# def load_game():
|
27 |
# upload_game_docs()
|
@@ -60,12 +56,6 @@ generate_image_prompt_gr = gradio.Interface(
|
|
60 |
description="An API for the user to generate a prompt to input to Leo"
|
61 |
)
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
inputs="text",
|
66 |
-
outputs="text",
|
67 |
-
title="Convert text to audio",
|
68 |
-
description="An API for the user to convert text to audio"
|
69 |
-
)
|
70 |
-
genesis_app = gradio.TabbedInterface([health_check_gr, initialize_game_gr, play_game_gr, generate_image_prompt_gr, generate_audio_gr], ["Developers - Health Check", "Initialize game", "Play Game", "Generate Prompt for Leo", "Test"])
|
71 |
genesis_app.launch()
|
|
|
1 |
import chat
|
2 |
import gradio
|
|
|
3 |
|
4 |
def initialize_game(game_id, user_id, user_input):
|
5 |
result = chat.initialize_game(game_id, user_id, user_input)
|
|
|
17 |
result = chat.generate_image_prompt(game_id, user_id, user_input)
|
18 |
return result
|
19 |
|
20 |
+
|
|
|
|
|
|
|
21 |
# @app.route('/load_game', methods=['GET'])
|
22 |
# def load_game():
|
23 |
# upload_game_docs()
|
|
|
56 |
description="An API for the user to generate a prompt to input to Leo"
|
57 |
)
|
58 |
|
59 |
+
|
60 |
+
genesis_app = gradio.TabbedInterface([health_check_gr, initialize_game_gr, play_game_gr, generate_image_prompt_gr], ["Developers - Health Check", "Initialize game", "Play Game", "Generate Prompt for Leo"])
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
genesis_app.launch()
|