added color to summary for better visibility.
This commit is contained in:
1 parent
7b783090d7
commit
ca5fbf9950
1 file changed
+1
-1
@@ -62,7 +62,7 @@ def summary(OPENAI_API_KEY, transcript):
|
|||||||
|
|
||||||
for chunk in stream:
|
for chunk in stream:
|
||||||
if chunk.choices[0].delta.content is not None:
|
if chunk.choices[0].delta.content is not None:
|
||||||
print(chunk.choices[0].delta.content, end="", flush=True)
|
print(f"\033[92m{chunk.choices[0].delta.content}\033[0m", end="", flush=True)
|
||||||
|
|
||||||
print("\nSummarized transcript.")
|
print("\nSummarized transcript.")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in new issue
Block a user