Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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\
|
| 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
|
| 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()
|