Hobson commited on
Commit
074552c
·
1 Parent(s): e61b4aa
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio
2
+
3
+ description = "Natural language generation with GPT-2"
4
+ title = "Give GPT-2 a prompt and it will take it from there..."
5
+ examples = [["What does sand between your toes feel like?"]]
6
+ model_path = "huggingface/CodeBERTa-small-v1"
7
+ tokenizer_path = "huggingface/CodeBERTa-small-v1"
8
+ model_path = "huggingface/pranavpsv/gpt2-genre-story-generator"
9
+
10
+ interface = gradio.Interface.load(
11
+ model_path,
12
+ description=description,
13
+ examples=examples,
14
+ )
15
+ interface.launch()