Spaces:
Running
Running
ChenyuRabbitLove
commited on
Commit
•
a0277c7
1
Parent(s):
a86dbbe
bugfix: fix minor bugs
Browse files- css/style.css +4 -0
- utils/completion_reward.py +2 -2
css/style.css
CHANGED
@@ -355,6 +355,10 @@ input[type="range"]::-ms-track {
|
|
355 |
margin: 1vh 1vw 1vh 1vw;
|
356 |
}
|
357 |
|
|
|
|
|
|
|
|
|
358 |
#certificate [aria-label="Download"]{
|
359 |
background: #12d2ab !important;
|
360 |
color: #fff !important;
|
|
|
355 |
margin: 1vh 1vw 1vh 1vw;
|
356 |
}
|
357 |
|
358 |
+
.code_wrap prep {
|
359 |
+
background: none;
|
360 |
+
}
|
361 |
+
|
362 |
#certificate [aria-label="Download"]{
|
363 |
background: #12d2ab !important;
|
364 |
color: #fff !important;
|
utils/completion_reward.py
CHANGED
@@ -205,7 +205,7 @@ class OpenAIAgent:
|
|
205 |
self.temperature = 0.8
|
206 |
self.frequency_penalty = 0
|
207 |
self.presence_penalty = 0
|
208 |
-
self.max_tokens =
|
209 |
|
210 |
def get_story(self, user_log):
|
211 |
system_prompt = """
|
@@ -304,7 +304,7 @@ class AWSAgent:
|
|
304 |
try:
|
305 |
completion = client.completions.create(
|
306 |
model="anthropic.claude-v2",
|
307 |
-
max_tokens_to_sample=
|
308 |
prompt=f"{anthropic_bedrock.HUMAN_PROMPT}{system_prompt},以下是我的故事紀錄```{user_log}``` {anthropic_bedrock.AI_PROMPT}",
|
309 |
)
|
310 |
chinese_converter = OpenCC("s2tw")
|
|
|
205 |
self.temperature = 0.8
|
206 |
self.frequency_penalty = 0
|
207 |
self.presence_penalty = 0
|
208 |
+
self.max_tokens = 1024
|
209 |
|
210 |
def get_story(self, user_log):
|
211 |
system_prompt = """
|
|
|
304 |
try:
|
305 |
completion = client.completions.create(
|
306 |
model="anthropic.claude-v2",
|
307 |
+
max_tokens_to_sample=1024,
|
308 |
prompt=f"{anthropic_bedrock.HUMAN_PROMPT}{system_prompt},以下是我的故事紀錄```{user_log}``` {anthropic_bedrock.AI_PROMPT}",
|
309 |
)
|
310 |
chinese_converter = OpenCC("s2tw")
|