Kaylah072001 commited on
Commit
01fc453
·
verified ·
1 Parent(s): a354b17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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