Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -82,24 +82,26 @@ def plot_func(date_str, time_str):
|
|
82 |
inputs = [gr.inputs.Textbox(label="Date: (MM/DD/YYYY)"), gr.inputs.Textbox(label="Time: (HH:MM:SS) GMT-4")]
|
83 |
|
84 |
title = "Earthquake Probability Prediction by Q-bert"
|
85 |
-
description = """
|
86 |
-
Earthquake Probability Prediction Interface
|
87 |
|
88 |
This interface is based on a Gradient Boosting model trained with a large dataset of significant earthquakes. The model aims to predict earthquake probabilities in different geographical regions worldwide.
|
89 |
|
90 |
-
How to Use?
|
91 |
|
92 |
Please enter the date and time information in the text boxes below (date format: MM/DD/YYYY and time format: HH:MM:SS GMT-4). The model will visualize the possible earthquake probabilities on the world map for the specified date and time.
|
93 |
|
94 |
-
About the Model
|
95 |
|
96 |
This model has been trained on a substantial dataset and utilizes the Gradient Boosting algorithm. The dataset comprises historical earthquake events along with corresponding geographical information. The model is employed to estimate earthquake probabilities in various regions at the specified date and time.
|
97 |
|
98 |
Please note that these predictions are probabilistic and the precise timing and locations of actual earthquake events are challenging to forecast accurately. Therefore, always consult with authorities for earthquake preparedness and precautionary measures.
|
99 |
|
100 |
-
Disclaimer
|
101 |
|
102 |
The results presented in this interface are for entertainment purposes only and should not be used for real-time earthquake event predictions.
|
103 |
|
104 |
-
In this text, users are informed about how to use the interface and the type of data on which the model was trained. It also emphasizes that the predictions are probabilistic and should not be used as a real-time application for earthquake predictions. As earthquakes can have serious consequences, users are reminded to seek reliable sources for verified information and advice.
|
|
|
|
|
105 |
gr.Interface(fn=plot_func, inputs=inputs, outputs="plot", title=title, description=description, debugging=True).launch()
|
|
|
82 |
inputs = [gr.inputs.Textbox(label="Date: (MM/DD/YYYY)"), gr.inputs.Textbox(label="Time: (HH:MM:SS) GMT-4")]
|
83 |
|
84 |
title = "Earthquake Probability Prediction by Q-bert"
|
85 |
+
description = f"""
|
86 |
+
# Earthquake Probability Prediction Interface
|
87 |
|
88 |
This interface is based on a Gradient Boosting model trained with a large dataset of significant earthquakes. The model aims to predict earthquake probabilities in different geographical regions worldwide.
|
89 |
|
90 |
+
## How to Use?
|
91 |
|
92 |
Please enter the date and time information in the text boxes below (date format: MM/DD/YYYY and time format: HH:MM:SS GMT-4). The model will visualize the possible earthquake probabilities on the world map for the specified date and time.
|
93 |
|
94 |
+
## About the Model
|
95 |
|
96 |
This model has been trained on a substantial dataset and utilizes the Gradient Boosting algorithm. The dataset comprises historical earthquake events along with corresponding geographical information. The model is employed to estimate earthquake probabilities in various regions at the specified date and time.
|
97 |
|
98 |
Please note that these predictions are probabilistic and the precise timing and locations of actual earthquake events are challenging to forecast accurately. Therefore, always consult with authorities for earthquake preparedness and precautionary measures.
|
99 |
|
100 |
+
## Disclaimer
|
101 |
|
102 |
The results presented in this interface are for entertainment purposes only and should not be used for real-time earthquake event predictions.
|
103 |
|
104 |
+
In this text, users are informed about how to use the interface and the type of data on which the model was trained. It also emphasizes that the predictions are probabilistic and should not be used as a real-time application for earthquake predictions. As earthquakes can have serious consequences, users are reminded to seek reliable sources for verified information and advice.
|
105 |
+
"""
|
106 |
+
|
107 |
gr.Interface(fn=plot_func, inputs=inputs, outputs="plot", title=title, description=description, debugging=True).launch()
|