Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ from fastapi.staticfiles import StaticFiles
|
|
| 11 |
from fastapi.middleware.cors import CORSMiddleware # Needed if not serving static files from FastAPI
|
| 12 |
|
| 13 |
# Import Google GenAI library for Python (need to install: pip install google-generative-ai)
|
| 14 |
-
from google.generativeai import GenerativeModel, GenerationConfig
|
| 15 |
|
| 16 |
# Get API key from Hugging Face Space Secret (must be set as GEMINI_API_KEY)
|
| 17 |
gemini_api_key = os.environ.get("GEMINI_API_KEY")
|
|
|
|
| 11 |
from fastapi.middleware.cors import CORSMiddleware # Needed if not serving static files from FastAPI
|
| 12 |
|
| 13 |
# Import Google GenAI library for Python (need to install: pip install google-generative-ai)
|
| 14 |
+
from google.generativeai import GenerativeModel, GenerationConfig
|
| 15 |
|
| 16 |
# Get API key from Hugging Face Space Secret (must be set as GEMINI_API_KEY)
|
| 17 |
gemini_api_key = os.environ.get("GEMINI_API_KEY")
|