import gradio as gr from code_summarizer import query demo = gr.Interface( fn=query, inputs=[ gr.Dropdown(['Python', 'PHP','Java','Go','Javascript','Ruby'],label='Select the programming language'), gr.Textbox(label="Enter the user prompt"), ], outputs="text", ) demo.launch()