MavisAJ commited on
Commit
c81d007
1 Parent(s): 9ea955a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- dist = 'meters'
31
- model_output = model.predict(input_data)
32
- return(output_str,model_output,dist)
 
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: