explorall commited on
Commit
79b10c2
·
1 Parent(s): 2a3c7b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ def latest_prediction(path):
23
  temp = f.readline()
24
  f.close()
25
 
26
- return "Prediction at time : "+date+"\n\nPredicted temperature:"+temp
27
 
28
  with gr.Blocks() as demo:
29
  with gr.Row():
@@ -36,6 +36,6 @@ with gr.Blocks() as demo:
36
  with gr.Row():
37
  with gr.Column():
38
  gr.Label("Recent Prediction History")
39
- gr.DataFrame(predictions_df.tail(4))
40
 
41
  demo.launch()
 
23
  temp = f.readline()
24
  f.close()
25
 
26
+ return "#Prediction at time : "+date+"\n\n#Predicted temperature:"+temp
27
 
28
  with gr.Blocks() as demo:
29
  with gr.Row():
 
36
  with gr.Row():
37
  with gr.Column():
38
  gr.Label("Recent Prediction History")
39
+ gr.DataFrame(predictions_df, interactive=False)
40
 
41
  demo.launch()