Spaces:
Sleeping
Sleeping
bayandorian
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
4 |
-
client = InferenceClient("gpt2")
|
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)
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
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)
|