Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|