Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,9 @@ import yfinance as yf
|
|
| 5 |
import matplotlib.pyplot as plt
|
| 6 |
import io
|
| 7 |
|
|
|
|
|
|
|
|
|
|
| 8 |
# Load the image classification pipeline
|
| 9 |
classifier = pipeline(task="image-classification", model="julien-c/bullish-or-bearish")
|
| 10 |
|
|
|
|
| 5 |
import matplotlib.pyplot as plt
|
| 6 |
import io
|
| 7 |
|
| 8 |
+
# Install yfinance if not already installed
|
| 9 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", "yfinance"])
|
| 10 |
+
|
| 11 |
# Load the image classification pipeline
|
| 12 |
classifier = pipeline(task="image-classification", model="julien-c/bullish-or-bearish")
|
| 13 |
|