Spaces:
Runtime error
Runtime error
Update app.py
Browse files123456715 unmodified lines23242526272829import argparseimport osimport spaces
#hack install gradioos.system("pip uninstall -y gradio")15 unmodified lines parser.add_argument("--n_gpus", type=int, default=1) # n_gpu return parser.parse_args()
@spaces.GPU()def predict(message, history, system_prompt, temperature, max_tokens): global model, tokenizer, device instruction = "<|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