MAINTENANCE_NOTICE1='Hint 1: If the app report "Something went wrong, connection error out", please turn off your proxy and retry.\nHint 2: If you upload a large size of image like 10MB, it may take some time to upload and process. Please be patient and wait.'
MAINTENANCE_NOTICE2='提示1: 如果应用报了“Something went wrong, connection error out”的错误,请关闭代理并重试。\n提示2: 如果你上传了很大的图片,比如10MB大小,那将需要一些时间来上传和处理,请耐心等待。'
NOTES='This app is adapted from <a href="https://github.com/WangRongsheng/XrayGLM">https://github.com/WangRongsheng/XrayGLM</a>. It would be recommended to check out the repo if you want to see the detail of our model and training process.'
defclear_fn(value):
return"",[("","Hi, What do you want to know about this image?")],None
defclear_fn2(value):
return[("","Hi, What do you want to know about this image?")]
result_text=gr.components.Chatbot(label='Multi-round conversation History',value=[("","Hi, What do you want to know about this image?")]).style(height=550)