Views
No views yet
1from transformers import pipeline
2
3chatbot = pipeline("text-generation", model="hf.co/Zkare/Chatbot_Ielts_Assistant:Q4_K_M") # You can change :Q4_K_M to :F16 for better one
4
5prompt = "Can you ask me a Part 2 IELTS Speaking question?"
6response = chatbot(prompt, max_length=256, do_sample=True, top_p=0.9, temperature=0.7)
7
8print(response[0]["generated_text"])