Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,9 +27,10 @@ def predict(*args,scaler = ml_scaler, model =mls):
|
|
27 |
# Modeling
|
28 |
#with gr.Row():
|
29 |
output_str = 'Hey there,Your ETA is'
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
33 |
# Function to process inputs and return prediction
|
34 |
# Creating a dataframe of inputs
|
35 |
with gr.Blocks(theme=gr.themes.Monochrome()) as app:
|
|
|
27 |
# Modeling
|
28 |
#with gr.Row():
|
29 |
output_str = 'Hey there,Your ETA is'
|
30 |
+
output_str = 'Hey there,Your ETA is'
|
31 |
+
dist = 'seconds'
|
32 |
+
model_output = abs(int(model.predict(input_data)))
|
33 |
+
return f"{output_str} {model_output} {dist}"
|
34 |
# Function to process inputs and return prediction
|
35 |
# Creating a dataframe of inputs
|
36 |
with gr.Blocks(theme=gr.themes.Monochrome()) as app:
|