Spaces:
Runtime error
Runtime error
Change print
Browse files- control_flow/main.py +2 -2
control_flow/main.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
from ai_tasks.best_headlines import get_headlines
|
2 |
from code_tasks.url_text import get_text_from_url
|
3 |
-
from utils.io import
|
4 |
|
5 |
|
6 |
def run():
|
7 |
url = user_input("URL: ")
|
8 |
text = get_text_from_url(url)
|
9 |
headlines = get_headlines(text)
|
10 |
-
|
|
|
1 |
from ai_tasks.best_headlines import get_headlines
|
2 |
from code_tasks.url_text import get_text_from_url
|
3 |
+
from utils.io import print_assistant, user_input
|
4 |
|
5 |
|
6 |
def run():
|
7 |
url = user_input("URL: ")
|
8 |
text = get_text_from_url(url)
|
9 |
headlines = get_headlines(text)
|
10 |
+
print_assistant(headlines)
|