Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# gradio_gpt2
|
2 |
+
import gradio as gr
|
3 |
+
|
4 |
+
gr.Interface.load(
|
5 |
+
"huggingface/gpt2",
|
6 |
+
title="Storytelling with GPT2",
|
7 |
+
css="""
|
8 |
+
body {
|
9 |
+
background: rgb(2,0,36);
|
10 |
+
background: linear-gradient(180deg, rgba(2,0,36,1) 0%, rgba(7,51,99,1) 70%, rgba(6,3,17,1) 100%);
|
11 |
+
}
|
12 |
+
.title {
|
13 |
+
color: white;
|
14 |
+
}
|
15 |
+
|
16 |
+
""",
|
17 |
+
interpretation="default", # shap fails for text box
|
18 |
+
).launch()
|
19 |
+
|
20 |
+
# css makes a nice gradient
|