trishat commited on
Commit
e6e1e99
·
verified ·
1 Parent(s): 9121da2

Added some example prompts for the user

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -91,4 +91,15 @@ def respond(message, history):
91
 
92
  chatbot = gr.ChatInterface(respond)
93
 
 
 
 
 
 
 
 
 
 
 
 
94
  chatbot.launch()
 
91
 
92
  chatbot = gr.ChatInterface(respond)
93
 
94
+ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
95
+ chatbot = gr.ChatInterface(
96
+ fn = respond,
97
+ cache_examples = False,
98
+ textbox=gr.Textbox(placeholder="Ask me anything!", container=False, scale=7),
99
+ title = "ByteShield - Your AI Gaurdian for Online Safety",
100
+ description = "Ask me anything about online safety!",
101
+ #multimodal = True,
102
+ examples = ["Generate me some strong passwords to use.", "What are some security measures I can take to stay safe online?", "Explain how a data breach works.", "How do I know if a message is a scam or not?"]
103
+ )
104
+
105
  chatbot.launch()