Spaces:
Runtime error
Runtime error
Comments
Browse files- control_flow/main.py +2 -2
control_flow/main.py
CHANGED
@@ -35,8 +35,8 @@ def run():
|
|
35 |
summary = summarize_text(text)
|
36 |
print_assistant(summary)
|
37 |
# Pick an image and generate a headline
|
38 |
-
|
39 |
-
|
40 |
# Generate a headline and an image
|
41 |
headline_prompt = generate_headline_and_prompt(summary, dimensions)
|
42 |
print_system("Generating AI images...")
|
|
|
35 |
summary = summarize_text(text)
|
36 |
print_assistant(summary)
|
37 |
# Pick an image and generate a headline
|
38 |
+
headlines = get_headline_for_image(summary, dimensions, image_info)
|
39 |
+
print_assistant(headlines)
|
40 |
# Generate a headline and an image
|
41 |
headline_prompt = generate_headline_and_prompt(summary, dimensions)
|
42 |
print_system("Generating AI images...")
|