Riddwam commited on
Commit
e639c9b
·
verified ·
1 Parent(s): a9d91ed

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, Modality
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")