Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ os.system('chmod +x ./pget')
|
|
| 19 |
def addrecord(orig,pitmp3,mid,gname,ghint):
|
| 20 |
if not gname or not ghint:
|
| 21 |
return 'E/缺少name或hint.'
|
| 22 |
-
names=gname.split('\n')
|
| 23 |
lastkey=last.get('last')
|
| 24 |
if not lastkey:
|
| 25 |
thiskey=0
|
|
@@ -92,7 +92,7 @@ def predict(ina):
|
|
| 92 |
|
| 93 |
|
| 94 |
aud=gr.Textbox(label="视频ID")
|
| 95 |
-
g_name=gr.TextArea(label="游戏名称(谜底),回车分名称,一行一个
|
| 96 |
g_hint=gr.TextArea(label="开发厂商(提示)")
|
| 97 |
oar=gr.Audio(label="下载的音频")
|
| 98 |
oa=gr.Audio(label="预览midi")
|
|
|
|
| 19 |
def addrecord(orig,pitmp3,mid,gname,ghint):
|
| 20 |
if not gname or not ghint:
|
| 21 |
return 'E/缺少name或hint.'
|
| 22 |
+
names=list(set(gname.split('\n')))
|
| 23 |
lastkey=last.get('last')
|
| 24 |
if not lastkey:
|
| 25 |
thiskey=0
|
|
|
|
| 92 |
|
| 93 |
|
| 94 |
aud=gr.Textbox(label="视频ID")
|
| 95 |
+
g_name=gr.TextArea(label="游戏名称(谜底),回车分名称,一行一个")
|
| 96 |
g_hint=gr.TextArea(label="开发厂商(提示)")
|
| 97 |
oar=gr.Audio(label="下载的音频")
|
| 98 |
oa=gr.Audio(label="预览midi")
|