Spaces:
Sleeping
Sleeping
Update synthscope.py
Browse files- synthscope.py +4 -0
synthscope.py
CHANGED
|
@@ -8,6 +8,10 @@ import os
|
|
| 8 |
api_key = os.getenv("GEMINI_API_KEY")
|
| 9 |
client = genai.Client(api_key=api_key)
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
def GoogleSearchImageGen(prompt, image_style):
|
| 12 |
# Define style-specific prompts
|
| 13 |
style_prompts = {
|
|
|
|
| 8 |
api_key = os.getenv("GEMINI_API_KEY")
|
| 9 |
client = genai.Client(api_key=api_key)
|
| 10 |
|
| 11 |
+
google_search_tool = Tool(
|
| 12 |
+
google_search = GoogleSearch()
|
| 13 |
+
)
|
| 14 |
+
|
| 15 |
def GoogleSearchImageGen(prompt, image_style):
|
| 16 |
# Define style-specific prompts
|
| 17 |
style_prompts = {
|