Spaces:
Runtime error
Runtime error
Update app.py
Browse files1234515 unmodified lines212223242526import argparseimport os#hack install gradioos.system("pip uninstall -y gradio")15 unmodified linesparser.add_argument("--n_gpus", type=int, default=1) # n_gpureturn parser.parse_args()def predict(message, history, system_prompt, temperature, max_tokens):global model, tokenizer, deviceinstruction = "<|im_start|>system\nA chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n<|im_end|>\n"123456715 unmodified lines23242526272829import argparseimport osimport spaces#hack install gradioos.system("pip uninstall -y gradio")15 unmodified linesparser.add_argument("--n_gpus", type=int, default=1) # n_gpureturn parser.parse_args()@spaces.GPU()def predict(message, history, system_prompt, temperature, max_tokens):global model, tokenizer, deviceinstruction = "<|im_start|>system\nA chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n<|im_end|>\n"
app.py+3