Spaces:
Sleeping
Sleeping
import gradio as gr | |
def result (name, marks): | |
if marks >=90: | |
return f'Dear {name}, you got {marks}, Result = Pass' | |
return f'Dear {name}, you got {marks}, Result = Fail' | |
ui= gr.Interface(fn=result, inputs=['text','number'], outputs='label', title='Result generator') | |
ui.launch() |