Weyaxi's picture
Duplicate from Weyaxi/commit-trash-huggingface-spaces-codes
42472b3
raw
history blame contribute delete
181 Bytes
import sqlchat
for response in sqlchat.StreamCompletion.create(prompt='write python code to reverse a string', messages=[]):
print(response.completion.choices[0].text, end='')