Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
13 |
# gpt์ด์ฉํด์ ์ถ๋ก ํจ์ ๋ง๋ค๊ธฐ
|
14 |
def generate_annotated_text(text):
|
15 |
response = openai.ChatCompletion.create(
|
16 |
-
model="gpt-
|
17 |
messages=[
|
18 |
{
|
19 |
"role": "system",
|
@@ -131,7 +131,7 @@ if st.session_state.generated_result:
|
|
131 |
df = pd.DataFrame(st.session_state.similar_sentences, columns=["Similar Sentences"])
|
132 |
|
133 |
# CSV ํ์ผ๋ก ๋ณํ
|
134 |
-
csv = df.to_csv(index=False).encode('utf-8')
|
135 |
|
136 |
# ๋ค์ด๋ก๋ ๋ฒํผ ์์ฑ
|
137 |
st.download_button(
|
|
|
13 |
# gpt์ด์ฉํด์ ์ถ๋ก ํจ์ ๋ง๋ค๊ธฐ
|
14 |
def generate_annotated_text(text):
|
15 |
response = openai.ChatCompletion.create(
|
16 |
+
model="gpt-4o-mini",
|
17 |
messages=[
|
18 |
{
|
19 |
"role": "system",
|
|
|
131 |
df = pd.DataFrame(st.session_state.similar_sentences, columns=["Similar Sentences"])
|
132 |
|
133 |
# CSV ํ์ผ๋ก ๋ณํ
|
134 |
+
csv = df.to_csv(index=False).encode('utf-8-sig')
|
135 |
|
136 |
# ๋ค์ด๋ก๋ ๋ฒํผ ์์ฑ
|
137 |
st.download_button(
|