Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -343,6 +343,7 @@ def get_prompt_by_row_new(stock, row):
|
|
343 |
|
344 |
return head, filtered_news, basics
|
345 |
|
|
|
346 |
def get_all_prompts_online(symbol, with_basics=True, max_news_perweek = 5, weeks_before = 2):
|
347 |
|
348 |
end_date = get_curday()
|
@@ -389,7 +390,7 @@ def get_all_prompts_online(symbol, with_basics=True, max_news_perweek = 5, weeks
|
|
389 |
|
390 |
return info, prompt
|
391 |
|
392 |
-
|
393 |
def ask(symbol, weeks_before, withbasic):
|
394 |
|
395 |
# load inference data
|
|
|
343 |
|
344 |
return head, filtered_news, basics
|
345 |
|
346 |
+
@spaces.GPU()
|
347 |
def get_all_prompts_online(symbol, with_basics=True, max_news_perweek = 5, weeks_before = 2):
|
348 |
|
349 |
end_date = get_curday()
|
|
|
390 |
|
391 |
return info, prompt
|
392 |
|
393 |
+
@spaces.GPU()
|
394 |
def ask(symbol, weeks_before, withbasic):
|
395 |
|
396 |
# load inference data
|