AV-AV commited on
Commit
1cbedcb
·
verified ·
1 Parent(s): 43a9d63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -10
app.py CHANGED
@@ -103,6 +103,18 @@ with gr.Blocks() as demo:
103
  with gr.Row():
104
  article_input = gr.Textbox(label="Input Article", lines=15, placeholder="Enter your article here...")
105
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  # Outputs in two columns
107
  with gr.Row():
108
  with gr.Column():
@@ -123,16 +135,6 @@ with gr.Blocks() as demo:
123
  gr.Markdown("### Edited Article")
124
  edited_article = gr.Markdown(label="Edited Article")
125
 
126
- # Button to submit and process the article
127
- submit_btn = gr.Button("Submit")
128
-
129
- # Action on submit
130
- submit_btn.click(
131
- process_article,
132
- inputs=[article_input],
133
- outputs=[word_count, language_grammar, word_usage, flow_structure, technical_soundness,
134
- reference_links, faqs, top_suggestions, edited_article, pre_editing_genai, post_editing_genai]
135
- )
136
 
137
  # Launch the app
138
  demo.launch()
 
103
  with gr.Row():
104
  article_input = gr.Textbox(label="Input Article", lines=15, placeholder="Enter your article here...")
105
 
106
+
107
+ # Button to submit and process the article
108
+ submit_btn = gr.Button("Submit")
109
+
110
+ # Action on submit
111
+ submit_btn.click(
112
+ process_article,
113
+ inputs=[article_input],
114
+ outputs=[word_count, language_grammar, word_usage, flow_structure, technical_soundness,
115
+ reference_links, faqs, top_suggestions, edited_article, pre_editing_genai, post_editing_genai]
116
+ )
117
+
118
  # Outputs in two columns
119
  with gr.Row():
120
  with gr.Column():
 
135
  gr.Markdown("### Edited Article")
136
  edited_article = gr.Markdown(label="Edited Article")
137
 
 
 
 
 
 
 
 
 
 
 
138
 
139
  # Launch the app
140
  demo.launch()