Chenzhou commited on
Commit
6cd6dff
1 Parent(s): adcbaca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ import pandas as pd
10
  from huggingface_hub import hf_hub_url, cached_download
11
  import time
12
 
13
- title = "Stoclholm Highway E4 Real Time Traffic Prediction"
14
  description = "Stockholm E4 (59°23'44.7"" N 17°59'00.4""E) highway real time traffic prediction, updated in every hour"
15
 
16
  inputs = [gr.Dataframe(row_count = (1, "fixed"), col_count=(7,"fixed"), label="Input Data", interactive=1)]
@@ -26,4 +26,4 @@ json_response_smhi = json.loads(response_smhi.text)
26
  def infer(input_dataframe):
27
  return pd.DataFrame(model.predict(input_dataframe))
28
  referenceTime = dp.parse(json_response_smhi["referenceTime"]).timestamp()
29
- gr.Interface(fn = infer, inputs = inputs, outputs = referenceTime, title=title, description=description,live=True).launch()
 
10
  from huggingface_hub import hf_hub_url, cached_download
11
  import time
12
 
13
+ title = "Stockholm Highway E4 Real Time Traffic Prediction"
14
  description = "Stockholm E4 (59°23'44.7"" N 17°59'00.4""E) highway real time traffic prediction, updated in every hour"
15
 
16
  inputs = [gr.Dataframe(row_count = (1, "fixed"), col_count=(7,"fixed"), label="Input Data", interactive=1)]
 
26
  def infer(input_dataframe):
27
  return pd.DataFrame(model.predict(input_dataframe))
28
  referenceTime = dp.parse(json_response_smhi["referenceTime"]).timestamp()
29
+ gr.Interface(fn = infer, inputs = inputs, outputs = outputs, title=referenceTime, description=description,live=True).launch()