Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	File size: 804 Bytes
			
			| aeb4360 9eac8db aeb4360 3a5f89c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | import joblib
import pandas
from sklearn import model_selection
import gradio as gr
def greet(one,two, three, four, five, six, seven, eight):
      # load the model from disk
    loaded_model = joblib.load('finalized_model.sav')
    result = loaded_model.predict([[float(one),float(two), float(three), float(four), float(five), float(six), float(seven), float(eight)]])
    return str(result)
demo = gr.Interface(
    fn=greet,
    inputs=[
        gr.Textbox(label="one"),
        gr.Textbox(label="two"),
        gr.Textbox(label="three"),
        gr.Textbox(label="four"),
        gr.Textbox(label="five"),
        gr.Textbox(label="six"),
        gr.Textbox(label="seven"),
        gr.Textbox(label="eight"),
        
    ],
    outputs="text",
)
demo.launch(debug=True, auth=("atom", "password")) | 
