Update written_module.py
Browse files- written_module.py +9 -3
written_module.py
CHANGED
|
@@ -77,9 +77,15 @@ def written_dashboard(nickname_input):
|
|
| 77 |
goal_dropdown = gr.Dropdown(label="π― Writing Goal", choices=["Essay for school", "Job application", "Blog post", "Creative writing", "General improvement"], value="General improvement")
|
| 78 |
focus_checkboxes = gr.CheckboxGroup(label="π§ Focus Areas", choices=["Clarity", "Organization", "Grammar", "Vocabulary", "Tone", "Creativity"], value=["Clarity", "Organization", "Grammar", "Vocabulary", "Tone", "Creativity"])
|
| 79 |
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
file_input = gr.File(label="π Upload Text File", file_types=[".txt", ".md"])
|
| 85 |
feedback_box = gr.Textbox(label="π‘ Feedback", interactive=False, elem_id="feedback_box")
|
|
|
|
| 77 |
goal_dropdown = gr.Dropdown(label="π― Writing Goal", choices=["Essay for school", "Job application", "Blog post", "Creative writing", "General improvement"], value="General improvement")
|
| 78 |
focus_checkboxes = gr.CheckboxGroup(label="π§ Focus Areas", choices=["Clarity", "Organization", "Grammar", "Vocabulary", "Tone", "Creativity"], value=["Clarity", "Organization", "Grammar", "Vocabulary", "Tone", "Creativity"])
|
| 79 |
|
| 80 |
+
input_text = gr.Textbox(
|
| 81 |
+
label="π Your Writing",
|
| 82 |
+
lines=10,
|
| 83 |
+
elem_id="input_text",
|
| 84 |
+
elem_classes=["text_area"],
|
| 85 |
+
interactive=True
|
| 86 |
+
)
|
| 87 |
+
|
| 88 |
+
submit_button = gr.Button("π Submit", variant="primary", size="sm")
|
| 89 |
|
| 90 |
file_input = gr.File(label="π Upload Text File", file_types=[".txt", ".md"])
|
| 91 |
feedback_box = gr.Textbox(label="π‘ Feedback", interactive=False, elem_id="feedback_box")
|