Greenniche commited on
Commit
5892f51
1 Parent(s): 28afccf

Create app.py

Browse files

import 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()

Files changed (1) hide show
  1. app.py +0 -0
app.py ADDED
File without changes