Aishu-7 commited on
Commit
6b50730
·
verified ·
1 Parent(s): ff1350b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -68,6 +68,17 @@ top_results = get_top_chunks("Your account has been compromised", chunk_embeddin
68
 
69
  #print(top_results)
70
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  cleaned_chunks = preprocess_text(knowledge_base)
73
 
 
68
 
69
  #print(top_results)
70
 
71
+ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
72
+     chatbot = gr.ChatInterface(
73
+     fn = respond,
74
+     cache_examples = False,
75
+     textbox=gr.Textbox(placeholder="Ask me anything!", container=False, scale=7),
76
+     title = "ByteShield - Your AI Gaurdian for Online Safety",
77
+     description = "Ask me anything about online safety!",
78
+     #multimodal = True,
79
+     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?"]
80
+ )
81
+
82
 
83
  cleaned_chunks = preprocess_text(knowledge_base)
84