kacapower commited on
Commit
797ded3
·
verified ·
1 Parent(s): d727447

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -166,7 +166,7 @@ def generate_blogger_html(app_query, custom_link, mod_features, theme_color, tel
166
  # -----------------------------
167
  # UI & AUTHENTICATION LOGIC
168
  # -----------------------------
169
- with gr.Blocks(theme=gr.themes.Monochrome(primary_hue="blue")) as agent_ui:
170
  session_state = gr.State({"logged_in": False, "login_time": 0})
171
 
172
  with gr.Group(visible=True) as login_screen:
@@ -197,7 +197,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(primary_hue="blue")) as agent_ui:
197
  word_count_out = gr.Textbox(label="Total Word Count", interactive=False)
198
  kw_density_out = gr.Textbox(label="Keyword Density", interactive=False)
199
 
200
- gr.File(label="Download Draft Backup", value="latest_draft.txt", visible=False, interactive=False)
201
 
202
  with gr.Column(scale=2):
203
  with gr.Tabs():
@@ -236,4 +236,4 @@ with gr.Blocks(theme=gr.themes.Monochrome(primary_hue="blue")) as agent_ui:
236
  )
237
 
238
  if __name__ == "__main__":
239
- agent_ui.launch()
 
166
  # -----------------------------
167
  # UI & AUTHENTICATION LOGIC
168
  # -----------------------------
169
+ with gr.Blocks() as agent_ui:
170
  session_state = gr.State({"logged_in": False, "login_time": 0})
171
 
172
  with gr.Group(visible=True) as login_screen:
 
197
  word_count_out = gr.Textbox(label="Total Word Count", interactive=False)
198
  kw_density_out = gr.Textbox(label="Keyword Density", interactive=False)
199
 
200
+ gr.File(label="Download Draft Backup", visible=False, interactive=False)
201
 
202
  with gr.Column(scale=2):
203
  with gr.Tabs():
 
236
  )
237
 
238
  if __name__ == "__main__":
239
+ agent_ui.launch(theme=gr.themes.Monochrome(primary_hue="blue"))