Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -276,7 +276,7 @@ def chat(id, npc, text):
|
|
276 |
model=os.environ['MODEL'],
|
277 |
prompt = prom + f"{npc}μ λλ΅μ λ€μ λ¬Έμ₯μ λ§μΆ° μμ°μ€λ½κ² μμ±ν΄μ£ΌμΈμ. ν λ¬Έμ₯λ§ μμ±νμΈμ.\n\n{id}:" + text+f"\n\n{npc}:"
|
278 |
)
|
279 |
-
output = response.choices[0].text
|
280 |
output = output.replace(".",".\n")
|
281 |
time.sleep(10)
|
282 |
print(output)
|
|
|
276 |
model=os.environ['MODEL'],
|
277 |
prompt = prom + f"{npc}μ λλ΅μ λ€μ λ¬Έμ₯μ λ§μΆ° μμ°μ€λ½κ² μμ±ν΄μ£ΌμΈμ. ν λ¬Έμ₯λ§ μμ±νμΈμ.\n\n{id}:" + text+f"\n\n{npc}:"
|
278 |
)
|
279 |
+
output = response.choices[0].text
|
280 |
output = output.replace(".",".\n")
|
281 |
time.sleep(10)
|
282 |
print(output)
|