Download utils/visualizer.py from Satyam0077/Project-Samarth-Intelligent-QA-System: direct link, hf CLI and curl.
- Browser
- Download file 250 Bytes
-
https://huggingface.co/spaces/Satyam0077/Project-Samarth-Intelligent-QA-System/resolve/main/utils/visualizer.py
- Command line
-
hf download hf://spaces/Satyam0077/Project-Samarth-Intelligent-QA-System/utils/visualizer.py
-
curl -L -o visualizer.py https://huggingface.co/spaces/Satyam0077/Project-Samarth-Intelligent-QA-System/resolve/main/utils/visualizer.py
250 Bytes
| import matplotlib.pyplot as plt | |
| def plot_trend(df, x_col, y_col, title): | |
| plt.figure(figsize=(8,5)) | |
| plt.plot(df[x_col], df[y_col], marker='o') | |
| plt.title(title) | |
| plt.xlabel(x_col) | |
| plt.ylabel(y_col) | |
| plt.grid(True) | |
| plt.show() | |