forked from third-party-mirrors/ollama
better streaming plus gif
Signed-off-by: Matt Williams <m@technovangelist.com>
This commit is contained in:
parent
5de568bffe
commit
e4f59ba073
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# Log Analysis example
|
# Log Analysis example
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
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>`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user