Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -402,6 +402,8 @@ def run(
|
|
402 |
logger.info(f"[Auto WebSearch Keyword] {ws_query!r}")
|
403 |
ws_result = do_web_search(ws_query)
|
404 |
combined_system_msg += f"[Search top-20 Full Items Based on user prompt]\n{ws_result}\n\n"
|
|
|
|
|
405 |
else:
|
406 |
combined_system_msg += "[No valid keywords found, skipping WebSearch]\n\n"
|
407 |
|
@@ -693,4 +695,4 @@ with gr.Blocks(css=css, title="Vidraft-G3-27B ") as demo:
|
|
693 |
|
694 |
if __name__ == "__main__":
|
695 |
# 로컬에서만 실행 시
|
696 |
-
demo.launch()
|
|
|
402 |
logger.info(f"[Auto WebSearch Keyword] {ws_query!r}")
|
403 |
ws_result = do_web_search(ws_query)
|
404 |
combined_system_msg += f"[Search top-20 Full Items Based on user prompt]\n{ws_result}\n\n"
|
405 |
+
# >>> 추가된 안내 문구 (검색 결과의 link 등 출처를 활용)
|
406 |
+
combined_system_msg += "[참고: 위 검색결과 내용과 link를 출처로 인용하여 답변해 주세요.]\n\n"
|
407 |
else:
|
408 |
combined_system_msg += "[No valid keywords found, skipping WebSearch]\n\n"
|
409 |
|
|
|
695 |
|
696 |
if __name__ == "__main__":
|
697 |
# 로컬에서만 실행 시
|
698 |
+
demo.launch()
|