Spaces:
Running
Running
ChenyuRabbitLove
commited on
Commit
•
90eb215
1
Parent(s):
49bd2fc
feat: rename ntu img to ruby
Browse files- css/style.css +1 -1
- utils/completion_reward.py +4 -1
css/style.css
CHANGED
@@ -374,7 +374,7 @@ input[type="range"]::-ms-track {
|
|
374 |
border: None !important;
|
375 |
}
|
376 |
|
377 |
-
#
|
378 |
background: rgba(227, 66, 104, 0.4) !important;
|
379 |
border: None !important;
|
380 |
}
|
|
|
374 |
border: None !important;
|
375 |
}
|
376 |
|
377 |
+
#bot5 .message {
|
378 |
background: rgba(227, 66, 104, 0.4) !important;
|
379 |
border: None !important;
|
380 |
}
|
utils/completion_reward.py
CHANGED
@@ -153,6 +153,7 @@ class CompletionReward:
|
|
153 |
"paragraph_aws": self.paragraph_aws,
|
154 |
"paragraph_google": self.paragraph_google,
|
155 |
"paragraph_mtk": self.paragraph_mtk,
|
|
|
156 |
"player_certificate_url": self.player_certificate_url,
|
157 |
"created_at_date": datetime.now().date(),
|
158 |
}
|
@@ -490,7 +491,9 @@ class NTUAgent:
|
|
490 |
"""
|
491 |
|
492 |
url = 'http://api.twllm.com:20002/v1/chat/completions'
|
493 |
-
|
|
|
|
|
494 |
data = {
|
495 |
"model": "yentinglin/Taiwan-LLM-13B-v2.0-chat",
|
496 |
"messages": f"{system_prompt}, 以下是我的冒險故事 ```{user_log}```",
|
|
|
153 |
"paragraph_aws": self.paragraph_aws,
|
154 |
"paragraph_google": self.paragraph_google,
|
155 |
"paragraph_mtk": self.paragraph_mtk,
|
156 |
+
"paragraph_ntu": self.paragraph_ntu,
|
157 |
"player_certificate_url": self.player_certificate_url,
|
158 |
"created_at_date": datetime.now().date(),
|
159 |
}
|
|
|
491 |
"""
|
492 |
|
493 |
url = 'http://api.twllm.com:20002/v1/chat/completions'
|
494 |
+
message = f"{system_prompt}, 以下是我的冒險故事 ```{user_log}```"
|
495 |
+
logging.info(f"NTU Generating response...")
|
496 |
+
logging.info(f"NTU message: {message}")
|
497 |
data = {
|
498 |
"model": "yentinglin/Taiwan-LLM-13B-v2.0-chat",
|
499 |
"messages": f"{system_prompt}, 以下是我的冒險故事 ```{user_log}```",
|