import torch from transformers import pipeline import gradio as gr pipe = pipeline("text-generation", model="MTSAIR/multi_verse_model") def greet(name): res = pipe(name, do_sample=True, temperature=0.7, top_k=50, top_p=0.95) return res[0]['generated_text'] iface = gr.Interface(fn=greet, inputs="text", outputs="text") iface.launch()