import gradio as gr models=[ "nadiamaqbool81/starcoderbase-1b-hf", "nadiamaqbool81/starcoderbase-1b-hf_python", "nadiamaqbool81/starcoderbase-1b-hf_python", ] model_box=[ gr.load(f"models/{models[0]}"), gr.load(f"models/{models[1]}"), gr.load(f"models/{models[2]}"), ] current_model=model_box[0] def the_process(input_text, model_choice): a_variable = model_box[model_choice] output = a_variable(input_text) return(output) gr.HTML("""