Spaces:
Runtime error
Runtime error
File size: 268 Bytes
684137a c4d01d7 684137a |
1 2 3 4 5 6 7 8 9 10 |
import gradio as gr
from sentiwordnet_calculator import SentimentPipeline
pipe = SentimentPipeline("Tanor/SRGPTSENTPOS2", "Tanor/SRGPTSENTNEG2")
def calculate(text):
return pipe(text)
iface = gr.Interface(fn=calculate, inputs="text", outputs="text")
iface.launch() |