Update app.py
Browse files
app.py
CHANGED
@@ -355,7 +355,7 @@ def retrieved_info(query, rag_model = rag_model, generating_model = model):
|
|
355 |
|
356 |
messages = [
|
357 |
{"role": "user", "content": f"{query}"},
|
358 |
-
{"role": "system" , "content": f"Context: {retrieved_context}. Use the information from the Context to answer"}
|
359 |
]
|
360 |
|
361 |
outputs = pipe(messages, max_new_tokens=256)
|
@@ -410,9 +410,9 @@ demo = gr.ChatInterface(
|
|
410 |
],
|
411 |
title=title,
|
412 |
description=description,
|
|
|
413 |
textbox=gr.Textbox(placeholder=["'What is the future of AI?' or 'App Development'"]),
|
414 |
-
examples=[["
|
415 |
-
#example_icons=["🤖", "📱"],
|
416 |
theme="compact",
|
417 |
)
|
418 |
|
|
|
355 |
|
356 |
messages = [
|
357 |
{"role": "user", "content": f"{query}"},
|
358 |
+
{"role": "system" , "content": f"Context: {retrieved_context}. Use the information from the Context to answer the query. Provide links for credebility."}
|
359 |
]
|
360 |
|
361 |
outputs = pipe(messages, max_new_tokens=256)
|
|
|
410 |
],
|
411 |
title=title,
|
412 |
description=description,
|
413 |
+
submit_btn = True,
|
414 |
textbox=gr.Textbox(placeholder=["'What is the future of AI?' or 'App Development'"]),
|
415 |
+
examples=[["Future of AI"], ["App Development"]],
|
|
|
416 |
theme="compact",
|
417 |
)
|
418 |
|