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