| import gradio as gr | |
| from transformers import pipeline | |
| model_id = "knkarthick/TOPIC-DIALOGSUM" | |
| generator = pipeline(task="text2text-generation", model=model_id) | |
| def launch(input): | |
| return generator(input) | |
| iface = gr.Interface(launch, inputs="text", outputs="text") | |
| iface.launch() |