Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ model = model.to(device)
|
|
50 |
# Spacesμ GPU μμμ μ¬μ©νμ¬ chat ν¨μ μ€ν. μ΅λ 60μ΄ λμ GPU μμ μ¬μ© κ°λ₯.
|
51 |
@spaces.GPU(duration=60)
|
52 |
def chat(message, history, temperature, do_sample, max_tokens):
|
53 |
-
instruction = "You are a helpful assistant.
|
54 |
# μ±ν
κΈ°λ‘μ μ μ ν νμμΌλ‘ λ³ν
|
55 |
chat = []
|
56 |
for item in history:
|
|
|
50 |
# Spacesμ GPU μμμ μ¬μ©νμ¬ chat ν¨μ μ€ν. μ΅λ 60μ΄ λμ GPU μμ μ¬μ© κ°λ₯.
|
51 |
@spaces.GPU(duration=60)
|
52 |
def chat(message, history, temperature, do_sample, max_tokens):
|
53 |
+
instruction = "You are a helpful assistant."
|
54 |
# μ±ν
κΈ°λ‘μ μ μ ν νμμΌλ‘ λ³ν
|
55 |
chat = []
|
56 |
for item in history:
|