Spaces:
Sleeping
Sleeping
rafaldembski
commited on
Commit
•
adb3271
1
Parent(s):
7772e2d
Update app.py
Browse files
app.py
CHANGED
@@ -156,19 +156,6 @@ translations = {
|
|
156 |
}
|
157 |
}
|
158 |
|
159 |
-
# Dodane profesjonalne przykłady
|
160 |
-
examples = [
|
161 |
-
"Napisz szczegółowy plan marketingowy dla nowego produktu technologicznego.",
|
162 |
-
"Jakie są najnowsze trendy w sztucznej inteligencji w 2024 roku?",
|
163 |
-
"Opisz proces rekrutacji w firmie IT, krok po kroku.",
|
164 |
-
"Erstellen Sie eine SWOT-Analyse für die Einführung eines neuen Produkts auf dem deutschen Markt.",
|
165 |
-
"Welche ethischen Herausforderungen bestehen bei der Implementierung von KI im Gesundheitswesen?",
|
166 |
-
"Schildern Sie die Schritte für eine erfolgreiche digitale Transformation in einem mittelständischen Unternehmen.",
|
167 |
-
"Outline a comprehensive marketing strategy for launching a new tech product.",
|
168 |
-
"What are the latest trends in artificial intelligence in 2024?",
|
169 |
-
"Describe the recruitment process in a tech company, step by step."
|
170 |
-
]
|
171 |
-
|
172 |
with gr.Blocks(analytics_enabled=False, theme=gr.themes.Monochrome()) as demo:
|
173 |
language = gr.State("en")
|
174 |
|
@@ -202,16 +189,6 @@ with gr.Blocks(analytics_enabled=False, theme=gr.themes.Monochrome()) as demo:
|
|
202 |
user_message.submit(lambda x: gr.update(value=""), None, [user_message], queue=False)
|
203 |
submit_button.click(lambda x: gr.update(value=""), None, [user_message], queue=False)
|
204 |
clear_button.click(lambda x: gr.update(value=""), None, [user_message], queue=False)
|
205 |
-
|
206 |
-
with gr.Row():
|
207 |
-
examples_component = gr.Examples(
|
208 |
-
examples=examples,
|
209 |
-
inputs=[user_message],
|
210 |
-
cache_examples=False,
|
211 |
-
fn=generate_response,
|
212 |
-
outputs=[chatbot],
|
213 |
-
examples_per_page=9
|
214 |
-
)
|
215 |
|
216 |
language_selector.change(fn=change_language, inputs=[language_selector, user_message, submit_button, clear_button], outputs=[user_message, submit_button, clear_button, description])
|
217 |
|
|
|
156 |
}
|
157 |
}
|
158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
with gr.Blocks(analytics_enabled=False, theme=gr.themes.Monochrome()) as demo:
|
160 |
language = gr.State("en")
|
161 |
|
|
|
189 |
user_message.submit(lambda x: gr.update(value=""), None, [user_message], queue=False)
|
190 |
submit_button.click(lambda x: gr.update(value=""), None, [user_message], queue=False)
|
191 |
clear_button.click(lambda x: gr.update(value=""), None, [user_message], queue=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
|
193 |
language_selector.change(fn=change_language, inputs=[language_selector, user_message, submit_button, clear_button], outputs=[user_message, submit_button, clear_button, description])
|
194 |
|