Spaces:
Runtime error
Runtime error
File size: 307 Bytes
2de3774 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
import random
import glob
def get_hint():
hintfiles = glob.glob("hints/*.txt")
hints = []
for hintfile in hintfiles:
lines = open(hintfile, encoding='utf8').read().splitlines()
hints += lines
hint = f"**LPT:** *{random.choice(hints)}*"
return hint
|