bayandorian commited on
Commit
53a56d2
·
verified ·
1 Parent(s): c2b8507

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from huggingface_hub import InferenceClient
4
  client = InferenceClient("bayandorian/gpt2-kurdish")
5
 
6
  def generate_text(prompt):
7
- return client.text_generation(prompt,temperature=1.2, top_k=50, top_p=0.9, repetition_penalty=1.2)
8
 
9
  iface = gr.Interface(fn=generate_text, inputs="text", outputs="text")
10
  iface.launch()
 
4
  client = InferenceClient("bayandorian/gpt2-kurdish")
5
 
6
  def generate_text(prompt):
7
+ return prompt + " " + client.text_generation(prompt,temperature=1.2, top_k=50, top_p=0.9, repetition_penalty=1.2)
8
 
9
  iface = gr.Interface(fn=generate_text, inputs="text", outputs="text")
10
  iface.launch()