Update app.py
Browse files
app.py
CHANGED
|
@@ -59,9 +59,9 @@ User may provide raw facts, a bio, a business update, or a rough news draft.
|
|
| 59 |
- At the END of the article, include a separate section with SEO metadata formatted as an HTML list:
|
| 60 |
<h3>SEO Metadata</h3>
|
| 61 |
<ul>
|
| 62 |
-
<li><strong
|
| 63 |
-
<li><strong
|
| 64 |
-
<li><strong
|
| 65 |
</ul>
|
| 66 |
- Do NOT wrap the output in ```html or ``` markdown blocks.
|
| 67 |
|
|
@@ -293,7 +293,7 @@ def create_interface():
|
|
| 293 |
with gr.Row():
|
| 294 |
max_length_slider = gr.Slider(
|
| 295 |
minimum=1000,
|
| 296 |
-
maximum=
|
| 297 |
value=4000,
|
| 298 |
step=500,
|
| 299 |
label="π Max Input Length (characters)"
|
|
@@ -316,7 +316,7 @@ def create_interface():
|
|
| 316 |
|
| 317 |
download_file = gr.File(
|
| 318 |
label="π₯ Download HTML Article",
|
| 319 |
-
interactive=
|
| 320 |
)
|
| 321 |
|
| 322 |
with gr.Row():
|
|
@@ -324,7 +324,7 @@ def create_interface():
|
|
| 324 |
gr.HTML("<h3>π¨ Generated Article Preview</h3>")
|
| 325 |
article_output = gr.HTML(
|
| 326 |
label="Generated PR Article",
|
| 327 |
-
show_label=
|
| 328 |
)
|
| 329 |
|
| 330 |
# Event handlers
|
|
|
|
| 59 |
- At the END of the article, include a separate section with SEO metadata formatted as an HTML list:
|
| 60 |
<h3>SEO Metadata</h3>
|
| 61 |
<ul>
|
| 62 |
+
<li><strong>β
Meta Title:</strong> [Your suggested title here]</li>
|
| 63 |
+
<li><strong>β
Meta Description:</strong> [Your suggested description here]</li>
|
| 64 |
+
<li><strong>β
Target Keyword:</strong> [Your suggested keyword here]</li>
|
| 65 |
</ul>
|
| 66 |
- Do NOT wrap the output in ```html or ``` markdown blocks.
|
| 67 |
|
|
|
|
| 293 |
with gr.Row():
|
| 294 |
max_length_slider = gr.Slider(
|
| 295 |
minimum=1000,
|
| 296 |
+
maximum=7000,
|
| 297 |
value=4000,
|
| 298 |
step=500,
|
| 299 |
label="π Max Input Length (characters)"
|
|
|
|
| 316 |
|
| 317 |
download_file = gr.File(
|
| 318 |
label="π₯ Download HTML Article",
|
| 319 |
+
interactive=True
|
| 320 |
)
|
| 321 |
|
| 322 |
with gr.Row():
|
|
|
|
| 324 |
gr.HTML("<h3>π¨ Generated Article Preview</h3>")
|
| 325 |
article_output = gr.HTML(
|
| 326 |
label="Generated PR Article",
|
| 327 |
+
show_label=True
|
| 328 |
)
|
| 329 |
|
| 330 |
# Event handlers
|