Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ 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("
|
| 8 |
genai.configure(api_key=GOOGLE_API_KEY)
|
| 9 |
|
| 10 |
# Load the Gemini Model
|
|
@@ -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()
|
|
|
|
| 4 |
import textstat # For readability and complexity score
|
| 5 |
|
| 6 |
# Ensure the API key is securely set
|
| 7 |
+
GOOGLE_API_KEY = os.getenv("AIzaSyBxv9sXG1dyl4ugOOMmMU9QgyMYSvVKg5s") # Load API key from environment variable
|
| 8 |
genai.configure(api_key=GOOGLE_API_KEY)
|
| 9 |
|
| 10 |
# Load the Gemini Model
|
|
|
|
| 83 |
download_button.click(generate_downloadable_file, inputs=output_text, outputs=download_file)
|
| 84 |
|
| 85 |
# Launch the Gradio app
|
| 86 |
+
demo.launch()
|