Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ except requests.exceptions.ReadTimeout as e:
|
|
27 |
#print(r.content)
|
28 |
|
29 |
|
30 |
-
sector_prompt_text=str(r.content, 'UTF-8')
|
31 |
print(sector_prompt_text)
|
32 |
|
33 |
data={"prompt_type":'chatgpt_stock_news_snapshot_earnings',"hra_token":HRA_TOKEN}
|
@@ -38,7 +38,7 @@ except requests.exceptions.ReadTimeout as e:
|
|
38 |
#print(r.content)
|
39 |
|
40 |
|
41 |
-
earnings_prompt_text=str(r.content, 'UTF-8')
|
42 |
print(earnings_prompt_text)
|
43 |
|
44 |
def getstuff(openapikey,category_selector):
|
|
|
27 |
#print(r.content)
|
28 |
|
29 |
|
30 |
+
sector_prompt_text=str(r.content, 'UTF-8').split(',')
|
31 |
print(sector_prompt_text)
|
32 |
|
33 |
data={"prompt_type":'chatgpt_stock_news_snapshot_earnings',"hra_token":HRA_TOKEN}
|
|
|
38 |
#print(r.content)
|
39 |
|
40 |
|
41 |
+
earnings_prompt_text=str(r.content, 'UTF-8').split(',')
|
42 |
print(earnings_prompt_text)
|
43 |
|
44 |
def getstuff(openapikey,category_selector):
|