MalekCode03 commited on
Commit
3dfcd0f
ยท
verified ยท
1 Parent(s): ac30449

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -151,23 +151,23 @@ def process_and_alert(file):
151
 
152
  # Load comparison tables
153
  def load_metrics():
154
- return pd.read_csv("/content/drive/MyDrive/Analaysis for Time Fauiler/Models_Metrices.csv")
155
 
156
  def load_comparison():
157
- return pd.read_csv("/content/drive/MyDrive/Analaysis for Time Fauiler/model_comparison_20250419_0955.csv")
158
 
159
  # Gradio UI
160
  with gr.Blocks(title="๐Ÿ“Š Model Comparison Dashboard") as interface:
161
  with gr.Tab("๐Ÿ“ˆ Model Comparison"):
162
  gr.Markdown("## ๐Ÿ” Actual vs Predicted")
163
  with gr.Row():
164
- gr.Image(value="/content/drive/MyDrive/Analaysis for Time Fauiler/Images/Liner_Regresion.png", label="Linear Regression")
165
- gr.Image(value="/content/drive/MyDrive/Analaysis for Time Fauiler/Images/DT.png", label="Decision Tree")
166
  with gr.Row():
167
- gr.Image(value="/content/drive/MyDrive/Analaysis for Time Fauiler/Images/Random_Forest.png", label="Random Forest")
168
- gr.Image(value="/content/drive/MyDrive/Analaysis for Time Fauiler/Images/LSTM.png", label="LSTM")
169
  gr.Markdown("### ๐Ÿงฎ Data Distribution")
170
- gr.Image(value="/content/drive/MyDrive/Analaysis for Time Fauiler/Images/Data_Dis.png", label="Data Distribution")
171
  gr.Markdown("### ๐Ÿ“‹ Model Metrics Table")
172
  gr.Dataframe(load_metrics, interactive=False)
173
  gr.Markdown("### ๐Ÿ†• Best and Worst Models Table")
 
151
 
152
  # Load comparison tables
153
  def load_metrics():
154
+ return pd.read_csv("Data/Models_Metrices.csv")
155
 
156
  def load_comparison():
157
+ return pd.read_csv("Data/model_comparison_20250419_0955.csv")
158
 
159
  # Gradio UI
160
  with gr.Blocks(title="๐Ÿ“Š Model Comparison Dashboard") as interface:
161
  with gr.Tab("๐Ÿ“ˆ Model Comparison"):
162
  gr.Markdown("## ๐Ÿ” Actual vs Predicted")
163
  with gr.Row():
164
+ gr.Image(value="Images/Liner_Regresion.png", label="Linear Regression")
165
+ gr.Image(value="Images/DT.png", label="Decision Tree")
166
  with gr.Row():
167
+ gr.Image(value="Images/Random_Forest.png", label="Random Forest")
168
+ gr.Image(value="Images/LSTM.png", label="LSTM")
169
  gr.Markdown("### ๐Ÿงฎ Data Distribution")
170
+ gr.Image(value="Images/Data_Dis.png", label="Data Distribution")
171
  gr.Markdown("### ๐Ÿ“‹ Model Metrics Table")
172
  gr.Dataframe(load_metrics, interactive=False)
173
  gr.Markdown("### ๐Ÿ†• Best and Worst Models Table")