Spaces:
Runtime error
Runtime error
Commit
•
5892f51
1
Parent(s):
28afccf
Create app.py
Browse filesimport gradio as gr
def game_starts():
return "星期天,你是一名侦探,小兔子被杀了,她的室友有三人。"
def game(player_input):
# 这里写游戏逻辑,根据 player_input 处理游戏进程
iface = gr.Interface(game,
inputs=gr.inputs.Textbox("输入操作指令:"),
outputs="text",
title="文字冒险游戏",
description="一个简单的文字冒险游戏,你是一名侦探,小兔子被杀了,找出真凶并逮捕 'TA',别让 'TA' 逃脱!"
)
iface.launch()