Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import streamlit as st
|
|
2 |
import pandas as pd
|
3 |
import openai
|
4 |
import os
|
|
|
5 |
|
6 |
# OpenAI API μ€μ
|
7 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
@@ -24,7 +25,7 @@ def generate_living_record(data):
|
|
24 |
model="gpt-3.5-turbo-16k",
|
25 |
messages=[
|
26 |
{"role": "system",
|
27 |
-
"content":
|
28 |
},
|
29 |
{"role": "user",
|
30 |
"content": data_str
|
|
|
2 |
import pandas as pd
|
3 |
import openai
|
4 |
import os
|
5 |
+
import instructions
|
6 |
|
7 |
# OpenAI API μ€μ
|
8 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
|
25 |
model="gpt-3.5-turbo-16k",
|
26 |
messages=[
|
27 |
{"role": "system",
|
28 |
+
"content": instructions.instruction
|
29 |
},
|
30 |
{"role": "user",
|
31 |
"content": data_str
|