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