Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ def generate_presentation_content_openai(prompt, api_key, progress_bar, progress
|
|
| 92 |
"messages": [
|
| 93 |
{"role": "system", "content": "Jeste艣 ekspertem w tworzeniu prezentacji."
|
| 94 |
"Tw贸rz tre艣膰 prezentacji w formacie, gdzie ka偶dy slajd zaczyna si臋 od '#### Tytu艂 slajdu' a nast臋pnie zawiera tre艣膰 slajdu. U偶ywaj j臋zyka polskiego."
|
| 95 |
-
"Nie dodawaj jednak frazy 'Tytu艂 slajdu:' tylko od razu wstaw
|
| 96 |
{"role": "user", "content": prompt}
|
| 97 |
],
|
| 98 |
"stream": True,
|
|
@@ -162,7 +162,9 @@ def generate_presentation_content_deepseek(prompt, api_key, progress_bar, progre
|
|
| 162 |
data = {
|
| 163 |
"model": "deepseek-chat",
|
| 164 |
"messages": [
|
| 165 |
-
{"role": "system", "content": "Jeste艣 ekspertem w tworzeniu prezentacji.
|
|
|
|
|
|
|
| 166 |
{"role": "user", "content": prompt}
|
| 167 |
],
|
| 168 |
"stream": True,
|
|
|
|
| 92 |
"messages": [
|
| 93 |
{"role": "system", "content": "Jeste艣 ekspertem w tworzeniu prezentacji."
|
| 94 |
"Tw贸rz tre艣膰 prezentacji w formacie, gdzie ka偶dy slajd zaczyna si臋 od '#### Tytu艂 slajdu' a nast臋pnie zawiera tre艣膰 slajdu. U偶ywaj j臋zyka polskiego."
|
| 95 |
+
"Nie dodawaj jednak frazy 'Tytu艂 slajdu:' tylko od razu wstaw adekwatny tytu艂. Po tytule umie艣膰 tre艣膰 slajdu."},
|
| 96 |
{"role": "user", "content": prompt}
|
| 97 |
],
|
| 98 |
"stream": True,
|
|
|
|
| 162 |
data = {
|
| 163 |
"model": "deepseek-chat",
|
| 164 |
"messages": [
|
| 165 |
+
{"role": "system", "content": "Jeste艣 ekspertem w tworzeniu prezentacji."
|
| 166 |
+
"Tw贸rz tre艣膰 prezentacji w formacie, gdzie ka偶dy slajd zaczyna si臋 od '#### Tytu艂 slajdu' a nast臋pnie zawiera tre艣膰 slajdu. U偶ywaj j臋zyka polskiego."
|
| 167 |
+
"Nie dodawaj jednak frazy 'Tytu艂 slajdu:' tylko od razu wstaw adekwatny tytu艂. Po tytule umie艣膰 tre艣膰 slajdu."},
|
| 168 |
{"role": "user", "content": prompt}
|
| 169 |
],
|
| 170 |
"stream": True,
|