adventure gen
Browse files
app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# https://huggingface.co/blog/gradio-spaces
|
2 |
+
|
3 |
+
import gradio
|
4 |
+
|
5 |
+
description = "Natural language generation with GPT-2"
|
6 |
+
title = "Give GPT-2 a prompt and it will take it from there..."
|
7 |
+
examples = [["What does sand between your toes feel like?"]]
|
8 |
+
model_path = "huggingface/CodeBERTa-small-v1"
|
9 |
+
tokenizer_path = "huggingface/CodeBERTa-small-v1"
|
10 |
+
model_path = "huggingface/pranavpsv/gpt2-genre-story-generator"
|
11 |
+
|
12 |
+
interface = gradio.Interface.load(
|
13 |
+
model_path,
|
14 |
+
description=description,
|
15 |
+
examples=examples,
|
16 |
+
)
|
17 |
+
interface.launch()
|