Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -456,7 +456,7 @@ async def result(request: Request,
|
|
| 456 |
plt.savefig(plot7_path)
|
| 457 |
plt.close(fig)
|
| 458 |
|
| 459 |
-
img =
|
| 460 |
response7 = format_text((generate_gemini_response(plot7_path)))
|
| 461 |
|
| 462 |
|
|
@@ -526,7 +526,7 @@ async def result(request: Request,
|
|
| 526 |
ax.set_title('Top 10 Feature Importance (Decision Tree Regressor)', fontsize=18)
|
| 527 |
plot8_path = "static/dtree_regressor.png"
|
| 528 |
plt.savefig(plot8_path)
|
| 529 |
-
img =
|
| 530 |
response8 = format_text((generate_gemini_response(plot8_path)))
|
| 531 |
|
| 532 |
|
|
@@ -561,7 +561,7 @@ async def result(request: Request,
|
|
| 561 |
ax.set_title('Top 10 Feature Importance (Decision Tree Classifier)', fontsize=18)
|
| 562 |
plot9_path = "static/dtree_classifier.png"
|
| 563 |
plt.savefig(plot9_path)
|
| 564 |
-
img =
|
| 565 |
response9 = format_text((generate_gemini_response(plot9_path)))
|
| 566 |
|
| 567 |
|
|
@@ -601,7 +601,7 @@ async def result(request: Request,
|
|
| 601 |
ax.set_title('Top 10 Feature Importance (Random Forest Regressor)', fontsize=18)
|
| 602 |
plot10_path = "static/rf_regressor.png"
|
| 603 |
plt.savefig(plot10_path)
|
| 604 |
-
img =
|
| 605 |
response10 = format_text((generate_gemini_response(plot10_path)))
|
| 606 |
|
| 607 |
elif method == "Classification":
|
|
@@ -633,7 +633,7 @@ async def result(request: Request,
|
|
| 633 |
ax.set_title('Top 10 Feature Importance (Random Forest Classifier)', fontsize=18)
|
| 634 |
plot11_path = "static/rf_classifier.png"
|
| 635 |
plt.savefig(plot11_path)
|
| 636 |
-
img =
|
| 637 |
response11 = format_text((generate_gemini_response(plot11_path)))
|
| 638 |
|
| 639 |
|
|
|
|
| 456 |
plt.savefig(plot7_path)
|
| 457 |
plt.close(fig)
|
| 458 |
|
| 459 |
+
img = Image.open(plot7_path)
|
| 460 |
response7 = format_text((generate_gemini_response(plot7_path)))
|
| 461 |
|
| 462 |
|
|
|
|
| 526 |
ax.set_title('Top 10 Feature Importance (Decision Tree Regressor)', fontsize=18)
|
| 527 |
plot8_path = "static/dtree_regressor.png"
|
| 528 |
plt.savefig(plot8_path)
|
| 529 |
+
img = Image.open(plot8_path)
|
| 530 |
response8 = format_text((generate_gemini_response(plot8_path)))
|
| 531 |
|
| 532 |
|
|
|
|
| 561 |
ax.set_title('Top 10 Feature Importance (Decision Tree Classifier)', fontsize=18)
|
| 562 |
plot9_path = "static/dtree_classifier.png"
|
| 563 |
plt.savefig(plot9_path)
|
| 564 |
+
img = Image.open(plot9_path)
|
| 565 |
response9 = format_text((generate_gemini_response(plot9_path)))
|
| 566 |
|
| 567 |
|
|
|
|
| 601 |
ax.set_title('Top 10 Feature Importance (Random Forest Regressor)', fontsize=18)
|
| 602 |
plot10_path = "static/rf_regressor.png"
|
| 603 |
plt.savefig(plot10_path)
|
| 604 |
+
img = Image.open(plot10_path)
|
| 605 |
response10 = format_text((generate_gemini_response(plot10_path)))
|
| 606 |
|
| 607 |
elif method == "Classification":
|
|
|
|
| 633 |
ax.set_title('Top 10 Feature Importance (Random Forest Classifier)', fontsize=18)
|
| 634 |
plot11_path = "static/rf_classifier.png"
|
| 635 |
plt.savefig(plot11_path)
|
| 636 |
+
img = Image.open(plot11_path)
|
| 637 |
response11 = format_text((generate_gemini_response(plot11_path)))
|
| 638 |
|
| 639 |
|