Cesare01 commited on
Commit
b62b97b
·
verified ·
1 Parent(s): dc3ce3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -1,6 +1,13 @@
1
- # Load model directly
2
  import gradio as gr
3
 
4
- demo = gr.load("neuraly/bert-base-italian-cased-sentiment")
 
 
5
 
6
- demo.launch()
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ title = "GPT-J-6B"
4
+ description = "sentiment analysis italian model"
5
+ article = "<p style='text-align: center'><a href='https://github.com/kingoflolz/mesh-transformer-jax' target='_blank'>GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model</a></p>"
6
 
7
+ gr.Interface.load(
8
+ "huggingface/neuraly/bert-base-italian-cased-sentiment",
9
+ inputs=gr.Textbox(lines=5, label="Input Text"),
10
+ title=title,
11
+ description=description,
12
+ article=article,
13
+ ).launch()