Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,8 @@ system_data = [
|
|
| 17 |
your responses as possible. Try your best to help people fight their addiction.
|
| 18 |
You should never give dangerous advice at any point in time. Also include this term at
|
| 19 |
then end of your response 'Any Other Question Do You Have?'. Always call them with their
|
| 20 |
-
|
|
|
|
| 21 |
Always keep your answers short and crisp.
|
| 22 |
"""
|
| 23 |
}
|
|
@@ -67,9 +68,12 @@ def chat(prompt, history):
|
|
| 67 |
|
| 68 |
return model(system_data + get_history(history)+ get_user_data(prompt)).content
|
| 69 |
|
| 70 |
-
demo = gr.ChatInterface(chat,
|
|
|
|
|
|
|
|
|
|
| 71 |
description="""
|
| 72 |
-
DISCLAIMER
|
| 73 |
ANY RESPONSIBLITY FOR AN ADVERSE EVENT HAPPENS AS RESULT OF MODEL'S SUGGESTIONS.
|
| 74 |
REMEMBER IT IS THE USERS RESPONSIBLITY TO CROSSCHECK THE ADVICE WITH PROFESSIONALS
|
| 75 |
AND ACT ON IT.
|
|
|
|
| 17 |
your responses as possible. Try your best to help people fight their addiction.
|
| 18 |
You should never give dangerous advice at any point in time. Also include this term at
|
| 19 |
then end of your response 'Any Other Question Do You Have?'. Always call them with their
|
| 20 |
+
name if possible be more personal and ensure to be as motivating as possible. Don't
|
| 21 |
+
create name all by your self. If you dont know their name ask them.
|
| 22 |
Always keep your answers short and crisp.
|
| 23 |
"""
|
| 24 |
}
|
|
|
|
| 68 |
|
| 69 |
return model(system_data + get_history(history)+ get_user_data(prompt)).content
|
| 70 |
|
| 71 |
+
demo = gr.ChatInterface(chat,
|
| 72 |
+
chatbot=gr.Chatbot(),
|
| 73 |
+
title="ArunGPT",
|
| 74 |
+
theme = gr.themes.Soft(),
|
| 75 |
description="""
|
| 76 |
+
**DISCLAIMER:** THIS CHATBOT IS POWERED BY GENAI MODELS, AUTHOR OR CREATOR DOESN'T TAKE
|
| 77 |
ANY RESPONSIBLITY FOR AN ADVERSE EVENT HAPPENS AS RESULT OF MODEL'S SUGGESTIONS.
|
| 78 |
REMEMBER IT IS THE USERS RESPONSIBLITY TO CROSSCHECK THE ADVICE WITH PROFESSIONALS
|
| 79 |
AND ACT ON IT.
|