Spaces:
Sleeping
Sleeping
File size: 390 Bytes
e0ca228 50ca8c0 e0ca228 50ca8c0 e0ca228 50ca8c0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
import json
# from transformers import pipeline
# classifier = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")
def tagging(
input: str,
tags: tuple[str]
):
text = json.loads(str)
return text
app = gr.Interface(fn=tagging, inputs=[
gr.Textbox(label="Your input here"),
gr.Textbox(label="Your input here")
], outputs="text")
app.launch() |