eagle0504 commited on
Commit
2b16421
1 Parent(s): b332c08

run through helper

Browse files
Files changed (2) hide show
  1. requirements.txt +1 -0
  2. utils/helper.py +3 -7
requirements.txt CHANGED
@@ -5,6 +5,7 @@ langchain-community
5
  numexpr
6
  pandas
7
  streamlit==1.28.2
 
8
  plotly>=5.10.0
9
  plotly-express==0.4.0
10
  wikipedia
 
5
  numexpr
6
  pandas
7
  streamlit==1.28.2
8
+ stripe
9
  plotly>=5.10.0
10
  plotly-express==0.4.0
11
  wikipedia
utils/helper.py CHANGED
@@ -1,10 +1,13 @@
1
  # helper.py
2
  import os
 
3
  from typing import Dict, List, Tuple
4
 
5
  import matplotlib.pyplot as plt
6
  import numpy as np
7
  import pandas as pd
 
 
8
  import yfinance as yf
9
  from langchain import LLMChain, PromptTemplate
10
  from langchain.agents import initialize_agent, load_tools
@@ -381,13 +384,6 @@ def call_gpt(prompt: str, content: str) -> str:
381
  return response.choices[0].message.content
382
 
383
 
384
- import os
385
- import time
386
-
387
- import requests
388
- import streamlit as st
389
- import stripe
390
-
391
  # Set your secret key. Remember to switch to your live secret key in production!
392
  stripe.api_key = os.environ["STRIPE_API_KEY"]
393
 
 
1
  # helper.py
2
  import os
3
+ import time
4
  from typing import Dict, List, Tuple
5
 
6
  import matplotlib.pyplot as plt
7
  import numpy as np
8
  import pandas as pd
9
+ import requests
10
+ import stripe
11
  import yfinance as yf
12
  from langchain import LLMChain, PromptTemplate
13
  from langchain.agents import initialize_agent, load_tools
 
384
  return response.choices[0].message.content
385
 
386
 
 
 
 
 
 
 
 
387
  # Set your secret key. Remember to switch to your live secret key in production!
388
  stripe.api_key = os.environ["STRIPE_API_KEY"]
389