Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -104,14 +104,14 @@ def respond(message, history):
|
|
| 104 |
return response.choices[0].message.content.strip()
|
| 105 |
|
| 106 |
with gr.Blocks(theme=gr.themes.Ocean()) as demo:
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
#multimodal = True,
|
| 114 |
-
|
| 115 |
)
|
| 116 |
|
| 117 |
|
|
|
|
| 104 |
return response.choices[0].message.content.strip()
|
| 105 |
|
| 106 |
with gr.Blocks(theme=gr.themes.Ocean()) as demo:
|
| 107 |
+
chatbot = gr.ChatInterface(
|
| 108 |
+
fn = respond,
|
| 109 |
+
cache_examples = False,
|
| 110 |
+
textbox=gr.Textbox(placeholder="Ask me anything!", container=False, scale=7),
|
| 111 |
+
title = "ByteShield - Your AI Gaurdian for Online Safety",
|
| 112 |
+
description = "Ask me anything about online safety!",
|
| 113 |
#multimodal = True,
|
| 114 |
+
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?"]
|
| 115 |
)
|
| 116 |
|
| 117 |
|