Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,7 +98,7 @@ def respond(message, history):
|
|
| 98 |
|
| 99 |
response = client.chat_completion(
|
| 100 |
messages,
|
| 101 |
-
max_tokens=
|
| 102 |
)
|
| 103 |
|
| 104 |
return response.choices[0].message.content.strip()
|
|
@@ -143,7 +143,7 @@ with gr.Blocks(theme=theme, css = css) as demo:
|
|
| 143 |
fn = respond,
|
| 144 |
cache_examples = False,
|
| 145 |
textbox=gr.Textbox(placeholder="Ask me anything!", container=False, scale=7),
|
| 146 |
-
title = "ByteShield - Your AI Gaurdian for Online Safety",
|
| 147 |
description = "Ask me anything about online safety!",
|
| 148 |
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?"]
|
| 149 |
)
|
|
|
|
| 98 |
|
| 99 |
response = client.chat_completion(
|
| 100 |
messages,
|
| 101 |
+
max_tokens=500
|
| 102 |
)
|
| 103 |
|
| 104 |
return response.choices[0].message.content.strip()
|
|
|
|
| 143 |
fn = respond,
|
| 144 |
cache_examples = False,
|
| 145 |
textbox=gr.Textbox(placeholder="Ask me anything!", container=False, scale=7),
|
| 146 |
+
title = "ByteShield - Your AI Gaurdian for Online Safety!",
|
| 147 |
description = "Ask me anything about online safety!",
|
| 148 |
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?"]
|
| 149 |
)
|