Update app.py
Browse files
app.py
CHANGED
|
@@ -113,7 +113,7 @@ def main():
|
|
| 113 |
model="gpt-3.5-turbo-16k",
|
| 114 |
messages=messages,
|
| 115 |
temperature=0.1,
|
| 116 |
-
max_tokens=
|
| 117 |
)
|
| 118 |
|
| 119 |
explanation = response['choices'][0]['message']['content']
|
|
@@ -121,6 +121,7 @@ def main():
|
|
| 121 |
# 쉬운 표현으로 결과 출력
|
| 122 |
st.write(f"쉬운 글: {explanation}")
|
| 123 |
pass
|
|
|
|
| 124 |
#다시 쓰기
|
| 125 |
if btn_rewrite:
|
| 126 |
explanation_task = f"Rewrite the contents of '{user_input}' so that it will pass the writing test."
|
|
@@ -134,7 +135,7 @@ def main():
|
|
| 134 |
model="gpt-3.5-turbo-16k",
|
| 135 |
messages=messages,
|
| 136 |
temperature=0.1,
|
| 137 |
-
max_tokens=
|
| 138 |
)
|
| 139 |
|
| 140 |
explanation = response['choices'][0]['message']['content']
|
|
|
|
| 113 |
model="gpt-3.5-turbo-16k",
|
| 114 |
messages=messages,
|
| 115 |
temperature=0.1,
|
| 116 |
+
max_tokens=2500
|
| 117 |
)
|
| 118 |
|
| 119 |
explanation = response['choices'][0]['message']['content']
|
|
|
|
| 121 |
# 쉬운 표현으로 결과 출력
|
| 122 |
st.write(f"쉬운 글: {explanation}")
|
| 123 |
pass
|
| 124 |
+
|
| 125 |
#다시 쓰기
|
| 126 |
if btn_rewrite:
|
| 127 |
explanation_task = f"Rewrite the contents of '{user_input}' so that it will pass the writing test."
|
|
|
|
| 135 |
model="gpt-3.5-turbo-16k",
|
| 136 |
messages=messages,
|
| 137 |
temperature=0.1,
|
| 138 |
+
max_tokens=2500
|
| 139 |
)
|
| 140 |
|
| 141 |
explanation = response['choices'][0]['message']['content']
|