Commit e4f59ba0 authored by Matt Williams's avatar Matt Williams
Browse files

better streaming plus gif


Signed-off-by: default avatarMatt Williams <m@technovangelist.com>
parent 5de568bf
...@@ -41,7 +41,7 @@ for line in response.iter_lines(): ...@@ -41,7 +41,7 @@ for line in response.iter_lines():
if line: if line:
json_data = json.loads(line) json_data = json.loads(line)
if json_data['done'] == False: if json_data['done'] == False:
print(json_data['response'], end='') print(json_data['response'], end='', flush=True)
......
# Log Analysis example # Log Analysis example
![loganalyzer 2023-11-10 08_53_29](https://github.com/jmorganca/ollama/assets/633681/ad30f1fc-321f-4953-8914-e30e24db9921)
This example shows one possible way to create a log file analyzer. To use it, run: This example shows one possible way to create a log file analyzer. To use it, run:
`python loganalysis.py <logfile>` `python loganalysis.py <logfile>`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment