Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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)
|