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