Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,13 @@
|
|
| 1 |
-
# Load model directly
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
-
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|