EngrSamad commited on
Commit
f20a368
·
verified ·
1 Parent(s): 9c68805

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ def result (name, marks):
2
+ if marks >=90:
3
+ return f'Dear {name}, you got {marks}, Result = Pass'
4
+ return f'Dear {name}, you got {marks}, Result = Fail'
5
+
6
+
7
+
8
+
9
+ ui= gr.Interface(fn=result, inputs=['text','number'], outputs='label', title='Result generator')
10
+ ui.launch()
11
+ ui.launch(share=True)