Update app.py
Browse files
app.py
CHANGED
@@ -264,13 +264,23 @@ additional_inputs = [
|
|
264 |
gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Strafe für wiederholte Tokens")
|
265 |
]
|
266 |
|
|
|
|
|
|
|
|
|
267 |
|
268 |
demo1 = gr.ChatInterface(fn=invoke,
|
269 |
#additional_inputs = additional_inputs,
|
270 |
title = "Generative AI - LLM & RAG",
|
271 |
theme="soft",
|
|
|
272 |
retry_btn="Wiederholen",
|
273 |
undo_btn="Letztes löschen",
|
274 |
-
clear_btn="Verlauf löschen"
|
275 |
-
|
276 |
-
description = description)
|
|
|
|
|
|
|
|
|
|
|
|
264 |
gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Strafe für wiederholte Tokens")
|
265 |
]
|
266 |
|
267 |
+
chatbot_stream = gr.Chatbot(avatar_images=(
|
268 |
+
"https://drive.google.com/uc?id=18xKoNOHN15H_qmGhK__VKnGjKjirrquW",
|
269 |
+
"https://drive.google.com/uc?id=1tfELAQW_VbPCy6QTRbexRlwAEYo8rSSv"
|
270 |
+
), bubble_full_width = False)
|
271 |
|
272 |
demo1 = gr.ChatInterface(fn=invoke,
|
273 |
#additional_inputs = additional_inputs,
|
274 |
title = "Generative AI - LLM & RAG",
|
275 |
theme="soft",
|
276 |
+
chatbot=chatbot_stream,
|
277 |
retry_btn="Wiederholen",
|
278 |
undo_btn="Letztes löschen",
|
279 |
+
clear_btn="Verlauf löschen",
|
280 |
+
, additional_inputs=additional_inputs,
|
281 |
+
description = description)#.queue().launch()
|
282 |
+
|
283 |
+
with gr.Blocks() as demo:
|
284 |
+
with gr.Tab("Chatbot"):
|
285 |
+
chatbot_stream.like(vote, None, None)
|
286 |
+
chat_interface_stream.render()
|