Spaces:
Sleeping
Sleeping
set info section
Browse files
app.py
CHANGED
|
@@ -301,6 +301,20 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css="""
|
|
| 301 |
.odd-section { background-color: rgb(228 213 213); padding: 15px; border-radius: 8px; margin: 10px 0; }
|
| 302 |
""") as demo:
|
| 303 |
gr.Markdown("# Wikipedia Translator")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 304 |
|
| 305 |
# State variables
|
| 306 |
sections_state = gr.State({})
|
|
@@ -399,14 +413,18 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css="""
|
|
| 399 |
info="Optional: Add specific preferences for how the translation should be performed"
|
| 400 |
)
|
| 401 |
|
| 402 |
-
|
| 403 |
-
gr.
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 410 |
|
| 411 |
# Main content area
|
| 412 |
with gr.Column(scale=2) as main_content:
|
|
|
|
| 301 |
.odd-section { background-color: rgb(228 213 213); padding: 15px; border-radius: 8px; margin: 10px 0; }
|
| 302 |
""") as demo:
|
| 303 |
gr.Markdown("# Wikipedia Translator")
|
| 304 |
+
gr.Markdown("""
|
| 305 |
+
**Translate Wikipedia articles into any language using AI**
|
| 306 |
+
|
| 307 |
+
This tool helps you:
|
| 308 |
+
- Extract content from any Wikipedia article
|
| 309 |
+
- Translate it into your chosen language using OpenAI's models
|
| 310 |
+
- Maintain the article's structure and formatting
|
| 311 |
+
- Download the translated content in various formats
|
| 312 |
+
|
| 313 |
+
Start by configuring your API settings in the sidebar and entering a Wikipedia URL below.
|
| 314 |
+
|
| 315 |
+
---
|
| 316 |
+
Developed by [Abu Bakr Soliman](https://www.linkedin.com/in/bakrianoo/)
|
| 317 |
+
""")
|
| 318 |
|
| 319 |
# State variables
|
| 320 |
sections_state = gr.State({})
|
|
|
|
| 413 |
info="Optional: Add specific preferences for how the translation should be performed"
|
| 414 |
)
|
| 415 |
|
| 416 |
+
# Replace static About section with Accordion
|
| 417 |
+
with gr.Accordion("About", open=False):
|
| 418 |
+
gr.Markdown("""
|
| 419 |
+
This tool extracts content from Wikipedia articles and translates them into your selected language using OpenAI's language models.
|
| 420 |
+
|
| 421 |
+
1. Configure your API settings
|
| 422 |
+
2. Enter a Wikipedia URL
|
| 423 |
+
3. Click Extract to process the article
|
| 424 |
+
|
| 425 |
+
---
|
| 426 |
+
Developed by [Abu Bakr Soliman](https://www.linkedin.com/in/bakrianoo/)
|
| 427 |
+
""")
|
| 428 |
|
| 429 |
# Main content area
|
| 430 |
with gr.Column(scale=2) as main_content:
|