Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -245,7 +245,7 @@ Retrieved evidence:
|
|
| 245 |
response = client.chat_completion(
|
| 246 |
model=MODEL_NAME,
|
| 247 |
messages=[{"role": "user", "content": prompt}],
|
| 248 |
-
max_tokens=
|
| 249 |
)
|
| 250 |
|
| 251 |
return response.choices[0].message.content
|
|
@@ -266,7 +266,7 @@ demo = gr.Interface(
|
|
| 266 |
fn=answer_question,
|
| 267 |
inputs=gr.Textbox(label="Ask a question about the logs", lines=2, placeholder="e.g. Why is 173.234.31.186 suspicious?"),
|
| 268 |
outputs=gr.Textbox(label="Answer", lines=16),
|
| 269 |
-
title="
|
| 270 |
description="Ask grounded questions about the open source SSH log dataset."
|
| 271 |
)
|
| 272 |
|
|
|
|
| 245 |
response = client.chat_completion(
|
| 246 |
model=MODEL_NAME,
|
| 247 |
messages=[{"role": "user", "content": prompt}],
|
| 248 |
+
max_tokens=512
|
| 249 |
)
|
| 250 |
|
| 251 |
return response.choices[0].message.content
|
|
|
|
| 266 |
fn=answer_question,
|
| 267 |
inputs=gr.Textbox(label="Ask a question about the logs", lines=2, placeholder="e.g. Why is 173.234.31.186 suspicious?"),
|
| 268 |
outputs=gr.Textbox(label="Answer", lines=16),
|
| 269 |
+
title="Log Analyzer",
|
| 270 |
description="Ask grounded questions about the open source SSH log dataset."
|
| 271 |
)
|
| 272 |
|