Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,6 +51,13 @@ def app():
|
|
| 51 |
border: 2px solid goldenrod;
|
| 52 |
border-radius: 5px;
|
| 53 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
</style>
|
| 55 |
""",
|
| 56 |
unsafe_allow_html=True
|
|
@@ -78,9 +85,9 @@ def app():
|
|
| 78 |
messages.append({'role': 'assistant', 'content': organization_label})
|
| 79 |
|
| 80 |
completion = openai.ChatCompletion.create(
|
| 81 |
-
model='gpt-
|
| 82 |
messages=messages,
|
| 83 |
-
max_tokens=
|
| 84 |
)
|
| 85 |
|
| 86 |
ai_response = completion.choices[-1].message['content']
|
|
|
|
| 51 |
border: 2px solid goldenrod;
|
| 52 |
border-radius: 5px;
|
| 53 |
}
|
| 54 |
+
.section-container {
|
| 55 |
+
padding: 10px;
|
| 56 |
+
margin-bottom: 10px;
|
| 57 |
+
background-color: rgba(0, 0, 0, 0.05);
|
| 58 |
+
border-radius: 5px;
|
| 59 |
+
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
|
| 60 |
+
}
|
| 61 |
</style>
|
| 62 |
""",
|
| 63 |
unsafe_allow_html=True
|
|
|
|
| 85 |
messages.append({'role': 'assistant', 'content': organization_label})
|
| 86 |
|
| 87 |
completion = openai.ChatCompletion.create(
|
| 88 |
+
model='gpt-4',
|
| 89 |
messages=messages,
|
| 90 |
+
max_tokens=300,
|
| 91 |
)
|
| 92 |
|
| 93 |
ai_response = completion.choices[-1].message['content']
|