Pandora41 commited on
Commit
ccd6d84
·
1 Parent(s): 86d6d8c
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -1,13 +1,5 @@
1
  import gradio as gr
2
  import numpy as np
3
- import os
4
- import subprocess
5
-
6
- def install(package):
7
- subprocess.check_call([os.sys.executable, "-m", "pip", "install", package])
8
-
9
- install("tensorflow")
10
-
11
  import tensorflow as tf
12
 
13
  # Load the model
@@ -41,6 +33,7 @@ inputs = [
41
  gr.Number(label="Scholarship holder")
42
  ]
43
 
44
- output = gr.outputs.Textbox(label="Predicted Result")
 
45
 
46
  gr.Interface(fn=predict, inputs=inputs, outputs=output).launch()
 
1
  import gradio as gr
2
  import numpy as np
 
 
 
 
 
 
 
 
3
  import tensorflow as tf
4
 
5
  # Load the model
 
33
  gr.Number(label="Scholarship holder")
34
  ]
35
 
36
+ # Correct the output definition
37
+ output = gr.Textbox(label="Predicted Result")
38
 
39
  gr.Interface(fn=predict, inputs=inputs, outputs=output).launch()