aupfe08 commited on
Commit
86da093
1 Parent(s): 09ad828

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
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