import gradio as gr from huggingface_hub import InferenceClient client = InferenceClient("bayandorian/gpt2-kurdish") def generate_text(prompt): return prompt + " " + client.text_generation(prompt,temperature=1.2, top_k=50, top_p=0.9, repetition_penalty=1.2) iface = gr.Interface(fn=generate_text, inputs="text", outputs="text") iface.launch()