Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,11 +34,11 @@ def generate_game_name_and_functions(type):
|
|
| 34 |
|
| 35 |
response = chain({'type': type})
|
| 36 |
|
| 37 |
-
|
| 38 |
functions = response["functions"].strip().split(",,")
|
| 39 |
-
functions_formatted = "\n".join([f"🎮 {item}" for item in functions])
|
| 40 |
|
| 41 |
-
return f"{game_name}
|
| 42 |
|
| 43 |
iface = gr.Interface(
|
| 44 |
fn=generate_game_name_and_functions,
|
|
@@ -47,5 +47,4 @@ iface = gr.Interface(
|
|
| 47 |
title="🎮 Game Idea Generator 🎮",
|
| 48 |
description="Generate creative game ideas based on a game type!",
|
| 49 |
)
|
| 50 |
-
|
| 51 |
-
iface.launch(share = False)
|
|
|
|
| 34 |
|
| 35 |
response = chain({'type': type})
|
| 36 |
|
| 37 |
+
game_name = response["game_name"].strip()
|
| 38 |
functions = response["functions"].strip().split(",,")
|
| 39 |
+
functions_formatted = "\n".join([f"- 🎮 {item}" for item in functions])
|
| 40 |
|
| 41 |
+
return f"**{game_name}**\n\n💡 About The Game\n\n{functions_formatted}"
|
| 42 |
|
| 43 |
iface = gr.Interface(
|
| 44 |
fn=generate_game_name_and_functions,
|
|
|
|
| 47 |
title="🎮 Game Idea Generator 🎮",
|
| 48 |
description="Generate creative game ideas based on a game type!",
|
| 49 |
)
|
| 50 |
+
iface.launch(share=True)
|
|
|