Spaces:
Runtime error
Runtime error
Upload app.py
Browse files155 unmodified lines156157158159160161162163155 unmodified linesgen = full[len(prompt):] if full.startswith(prompt) else fullprint("gen")logs.append(f"[LOCAL LLM] Gen chars={len(gen)}")print(gen)logs.append(gen)# 嘗試解析 JSONtry:data = json.loads(gen)155 unmodified lines156157158159160161162163164165166167155 unmodified linesgen = full[len(prompt):] if full.startswith(prompt) else fullprint("gen")logs.append(f"[LOCAL LLM] Gen chars={len(gen)}")print("****gen begin***")print(gen)print("****gen end***")logs.append("****gen begin***")logs.append(gen)logs.append("****gen end***")# 嘗試解析 JSONtry:data = json.loads(gen)
app.py+4