File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 3939@generative
4040def classify_sentiment (text : str ) -> str :
4141 """Classify the sentiment of the given text as positive, negative, or neutral."""
42- ...
4342
4443
4544@generative
4645def extract_entities (text : str ) -> list [str ]:
4746 """Extract named entities from the text."""
48- ...
4947
5048
5149def main ():
@@ -91,10 +89,10 @@ def main():
9189 # Example 4: Chat interaction
9290 print ("\n 4. Chat interaction..." )
9391 response1 = m .chat ("What is 2+2?" )
94- print (f"Response 1: { str ( response1 ) } " )
92+ print (f"Response 1: { response1 !s } " )
9593
9694 response2 = m .chat ("Multiply that by 3" )
97- print (f"Response 2: { str ( response2 ) } " )
95+ print (f"Response 2: { response2 !s } " )
9896
9997 print ("\n " + "=" * 60 )
10098 print ("Example complete!" )
You can’t perform that action at this time.
0 commit comments