TsinghuaDatabaseGroup / DB-GPT

An LLM Based Diagnosis System (https://arxiv.org/pdf/2312.01454.pdf)
http://dbgpt.dbmind.cn/
Apache License 2.0
541 stars 77 forks source link

RuntimeError: main thread is not in main loop #69

Closed yangyongguang closed 9 months ago

yangyongguang commented 9 months ago

100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1

MemoryExpert Diagnosis!

yangyongguang commented 9 months ago

方法二(多线程)

将线程设置为守护程序, 所有使用 matplotlib 的位置, 添加一段 matplotlib.use('Agg')

# do this before importing pylab or pyplot
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt

参考链接