Closed mycomedico closed 8 months ago
Most of the inference functions will simply return a string, so you can assign the result to a variable as follows:
import languagemodels as lm
response = lm.do("What is the capital of France?")
print(response)
i had a syntax error when i tried to but now i see there were some other unescaped characters in my query that probably led to that... thanks `
Sounds good. I'm glad that you were able to get this resolved.
How do I store the model's response in a variable. When I tried to do this I received the error:
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?