Divyansh Kushwaha commited on
Commit
485e12a
·
1 Parent(s): c28ff59
Files changed (2) hide show
  1. api.py +2 -1
  2. requirements.txt +1 -0
api.py CHANGED
@@ -249,7 +249,6 @@ from utils import (
249
  extract_topics_with_hf,
250
  compare_articles
251
  )
252
- app = FastAPI(title="Company Sentiment API", description="Get company news summaries with sentiment analysis")
253
 
254
  api_keys = {
255
  "groq_api_key": None,
@@ -258,6 +257,8 @@ api_keys = {
258
  "voice_id":None
259
  }
260
 
 
 
261
  @app.post("/setAPIKeys")
262
  def set_api_keys(
263
  groq_api_key: str = Query(..., description="Enter your Groq API Key"),
 
249
  extract_topics_with_hf,
250
  compare_articles
251
  )
 
252
 
253
  api_keys = {
254
  "groq_api_key": None,
 
257
  "voice_id":None
258
  }
259
 
260
+ app = FastAPI(title="Company Sentiment API", description="Get company news summaries with sentiment analysis")
261
+
262
  @app.post("/setAPIKeys")
263
  def set_api_keys(
264
  groq_api_key: str = Query(..., description="Enter your Groq API Key"),
requirements.txt CHANGED
@@ -6,3 +6,4 @@ transformers
6
  langchain
7
  langchain_groq
8
  elevenlabs
 
 
6
  langchain
7
  langchain_groq
8
  elevenlabs
9
+ torch