File size: 395 Bytes
cbb44a7
 
d166da7
cbb44a7
d166da7
cbb44a7
d166da7
cbb44a7
 
d166da7
cbb44a7
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr
from gradio import inputs
description = "Arabic Story generation with GPT-2"
interface = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator", 
	title = "Arabic Story Generation with GPT-2",
	inputs = [
        gr.inputs.Textbox(lines=7, label="نص القصة"),
    ],
    description=description,
    examples=[["ِ a kid is playing"]]
)
interface.launch()