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)
|
@@ -57,13 +56,5 @@ generate_image_prompt_gr = gradio.Interface(
|
|
57 |
description="An API for the user to generate a prompt to input to Leo"
|
58 |
)
|
59 |
|
60 |
-
|
61 |
-
fn=audio.generate_audio,
|
62 |
-
inputs="text",
|
63 |
-
outputs="audio",
|
64 |
-
title="Generate audio",
|
65 |
-
description="An API for the user to generate audio"
|
66 |
-
)
|
67 |
-
|
68 |
-
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 API"])
|
69 |
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)
|
|
|
56 |
description="An API for the user to generate a prompt to input to Leo"
|
57 |
)
|
58 |
|
59 |
+
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"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
genesis_app.launch()
|