Spaces:
Runtime error
Runtime error
Update app.py
#1
by
explorall
- opened
app.py
CHANGED
|
@@ -26,13 +26,13 @@ def latest_prediction(path):
|
|
| 26 |
temp = f.readline()
|
| 27 |
f.close()
|
| 28 |
|
| 29 |
-
return "
|
| 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")
|
|
|
|
| 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")
|