File size: 524 Bytes
785ac60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# https://huggingface.co/blog/gradio-spaces

import gradio

description = "Natural language generation with GPT-2"
title = "Give GPT-2 a prompt and it will take it from there..."
examples = [["What does sand between your toes feel like?"]]
model_path = "huggingface/CodeBERTa-small-v1"
tokenizer_path = "huggingface/CodeBERTa-small-v1"
model_path = "huggingface/pranavpsv/gpt2-genre-story-generator"

interface = gradio.Interface.load(
    model_path,
    description=description,
    examples=examples,
)
interface.launch()