Spaces:
Sleeping
Sleeping
bayandorian
commited on
Update app.py
Browse files
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()
|