import gradio as gra from gena1 import * def gen(topic): return gena1(topic) #define gradio interface and other parameters app = gra.Interface(fn = gen, inputs="text", outputs="text") app.launch()