Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
orangecat
ollama
Commits
e4f59ba0
Commit
e4f59ba0
authored
Nov 10, 2023
by
Matt Williams
Browse files
better streaming plus gif
Signed-off-by:
Matt Williams
<
m@technovangelist.com
>
parent
5de568bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
examples/python-loganalysis/loganalysis.py
examples/python-loganalysis/loganalysis.py
+1
-1
examples/python-loganalysis/readme.md
examples/python-loganalysis/readme.md
+2
-0
No files found.
examples/python-loganalysis/loganalysis.py
View file @
e4f59ba0
...
...
@@ -41,7 +41,7 @@ for line in response.iter_lines():
if
line
:
json_data
=
json
.
loads
(
line
)
if
json_data
[
'done'
]
==
False
:
print
(
json_data
[
'response'
],
end
=
''
)
print
(
json_data
[
'response'
],
end
=
''
,
flush
=
True
)
...
...
examples/python-loganalysis/readme.md
View file @
e4f59ba0
# Log Analysis example

This example shows one possible way to create a log file analyzer. To use it, run:
`python loganalysis.py <logfile>`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment