seawolf2357 commited on
Commit
d02f40e
·
verified ·
1 Parent(s): c2c0f6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -17
app.py CHANGED
@@ -55,24 +55,7 @@ def get_stock_data(ticker):
55
  hist = stock.history(period="6mo") # 지난 6개월간의 데이터를 가져옵니다.
56
  return hist
57
 
58
- def plot_technical_indicators(df):
59
- plt.figure(figsize=(14, 7))
60
- plt.subplot(2, 1, 1)
61
- plt.plot(df['Close'], label='Close Price')
62
- plt.plot(df['SMA'], label='SMA 20')
63
- plt.plot(df['EMA'], label='EMA 20')
64
- plt.title('Price Chart with SMA and EMA')
65
- plt.legend()
66
 
67
- plt.subplot(2, 1, 2)
68
- plt.plot(df['RSI'], label='RSI')
69
- plt.title('RSI Chart')
70
- plt.legend()
71
-
72
- plt.tight_layout()
73
- plt.savefig('/mnt/data/Technical_Indicators.png')
74
- plt.close()
75
- return '/mnt/data/Technical_Indicators.png'
76
 
77
  def generate(prompt, history=[], temperature=0.1, max_new_tokens=10000, top_p=0.95, repetition_penalty=1.0):
78
  global total_tokens_used
 
55
  hist = stock.history(period="6mo") # 지난 6개월간의 데이터를 가져옵니다.
56
  return hist
57
 
 
 
 
 
 
 
 
 
58
 
 
 
 
 
 
 
 
 
 
59
 
60
  def generate(prompt, history=[], temperature=0.1, max_new_tokens=10000, top_p=0.95, repetition_penalty=1.0):
61
  global total_tokens_used