Marek4321 commited on
Commit
11d57f3
verified
1 Parent(s): 52fd995

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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 adekwatnmy tytu艂. Po tytule umie艣膰 tre艣膰 slajdu."},
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. Tw贸rz tre艣膰 prezentacji w formacie, gdzie ka偶dy slajd zaczyna si臋 od '#### Tytu艂 slajdu' a nast臋pnie zawiera tre艣膰 slajdu."},
 
 
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,