requirments.txt
Browse files- requirements.txt +17 -2
requirements.txt
CHANGED
|
@@ -1,2 +1,17 @@
|
|
| 1 |
-
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
def LRZ1(x):
|
| 3 |
+
pred= -0.5738734424645411 + 2.1659122905141825*x
|
| 4 |
+
return pred
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
"""#function to predict the input hours
|
| 8 |
+
def predict_score(hours):
|
| 9 |
+
hours = np.array(hours)
|
| 10 |
+
pred_score = -0.5738734424645411 + 2.1659122905141825*hours
|
| 11 |
+
return np.round(pred_score[0], 2)
|
| 12 |
+
input = gr.inputs.Number(label='Number of Hours studied')
|
| 13 |
+
output = gr.outputs.Textbox(label='Predicted Score')
|
| 14 |
+
gr.Interface( fn=predict_score,
|
| 15 |
+
inputs=input,
|
| 16 |
+
outputs=output).launch();
|
| 17 |
+
"""
|