explorall commited on
Commit
a861bdf
·
1 Parent(s): ccb008a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,13 +26,13 @@ def latest_prediction(path):
26
  temp = f.readline()
27
  f.close()
28
 
29
- return "Prediction at time : "+date+"\n\nPredicted temperature:"+temp
30
 
31
  with gr.Blocks() as demo:
32
  with gr.Row():
33
  with gr.Column():
34
- gr.Label("Latest Predicted Forecast/n/n"+latest_prediction("last_prediction.txt"))
35
- #gr.Markdown(latest_prediction("last_prediction.txt"))
36
  with gr.Column():
37
  gr.Label("Graph of Recent Predictions")
38
  input_img = gr.Image("prediction_graph.png", elem_id="temperature-graph")
 
26
  temp = f.readline()
27
  f.close()
28
 
29
+ return "## Prediction at time : "+date+"\n\n ## Predicted temperature:"+temp
30
 
31
  with gr.Blocks() as demo:
32
  with gr.Row():
33
  with gr.Column():
34
+ gr.Label("Latest Predicted Forecast)
35
+ gr.Markdown(latest_prediction("last_prediction.txt"))
36
  with gr.Column():
37
  gr.Label("Graph of Recent Predictions")
38
  input_img = gr.Image("prediction_graph.png", elem_id="temperature-graph")