Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,10 +40,10 @@ def respond(message, history, system_message, max_tokens, temperature, top_p, se
|
|
40 |
# 응답의 시작 부분에서 사용자 입력의 반복을 제거
|
41 |
if response.startswith(message):
|
42 |
response = response[len(message):].lstrip()
|
43 |
-
yield response
|
44 |
|
45 |
except Exception as e:
|
46 |
-
yield f"오류 발생: {str(e)}"
|
47 |
|
48 |
def continue_writing(message, chat_history, system_message, max_tokens, temperature, top_p, selected_model):
|
49 |
if not chat_history:
|
|
|
40 |
# 응답의 시작 부분에서 사용자 입력의 반복을 제거
|
41 |
if response.startswith(message):
|
42 |
response = response[len(message):].lstrip()
|
43 |
+
yield history + [(message, response)]
|
44 |
|
45 |
except Exception as e:
|
46 |
+
yield history + [(message, f"오류 발생: {str(e)}")]
|
47 |
|
48 |
def continue_writing(message, chat_history, system_message, max_tokens, temperature, top_p, selected_model):
|
49 |
if not chat_history:
|