Spaces:
Paused
Paused
Update app.py
Browse files12347 unmodified lines12131415161718import gradio as grimport torchfrom threading import Threadfrom transformers import AutoTokenizer, AutoModelForCausalLM, TextIteratorStreamer7 unmodified linestie_word_embeddings=False # 尝试强制关闭权重绑定检查)import spaces@spaces.GPUdef respond(message, history):messages = [{"role": "system", "content": "You are Spartacus, a helpful assistant."}]123457 unmodified lines131415161718import spacesimport torchfrom threading import Threadfrom transformers import AutoTokenizer, AutoModelForCausalLM, TextIteratorStreamer7 unmodified linestie_word_embeddings=False # 尝试强制关闭权重绑定检查)@spaces.GPUdef respond(message, history):messages = [{"role": "system", "content": "You are Spartacus, a helpful assistant."}]
app.py+2-2