BoojithDharshan commited on
Commit
a7a3e63
·
verified ·
1 Parent(s): 9c8f0c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import google.generativeai as genai
3
  import os
4
  import textstat # For readability and complexity score
5
 
6
- # Ensure the API key is securely
7
  GOOGLE_API_KEY = os.getenv("AIzaSyAfR5zgLAuYaBeJUxnVjkKTII5uneNmKrk") # Load API key from environment variable
8
  genai.configure(api_key=GOOGLE_API_KEY)
9
 
@@ -83,4 +83,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
83
  download_button.click(generate_downloadable_file, inputs=output_text, outputs=download_file)
84
 
85
  # Launch the Gradio app
86
- demo.launch()
 
3
  import os
4
  import textstat # For readability and complexity score
5
 
6
+ # Ensure the API key is securely set
7
  GOOGLE_API_KEY = os.getenv("AIzaSyAfR5zgLAuYaBeJUxnVjkKTII5uneNmKrk") # Load API key from environment variable
8
  genai.configure(api_key=GOOGLE_API_KEY)
9
 
 
83
  download_button.click(generate_downloadable_file, inputs=output_text, outputs=download_file)
84
 
85
  # Launch the Gradio app
86
+ demo.launch()