|
26 | 26 | Part,
|
27 | 27 | )
|
28 | 28 |
|
29 |
| -from dataclasses import dataclass, field |
| 29 | +from dataclasses import field |
30 | 30 | from dataclasses_json import dataclass_json
|
31 |
| -from typing import List, TypedDict, Any |
32 | 31 |
|
33 | 32 |
|
34 | 33 | PROJECT_ID = os.environ.get("GOOGLE_CLOUD_PROJECT") # Your Google Cloud Project ID
|
@@ -401,12 +400,6 @@ def generate_er_doc(e: me.ClickEvent | me.EnterEvent):
|
401 | 400 | "temperature": 0.3,
|
402 | 401 | "max_output_tokens": 2048,
|
403 | 402 | }
|
404 |
| - safety_settings = { |
405 |
| - HarmCategory.HARM_CATEGORY_HARASSMENT: HarmBlockThreshold.BLOCK_NONE, |
406 |
| - HarmCategory.HARM_CATEGORY_HATE_SPEECH: HarmBlockThreshold.BLOCK_NONE, |
407 |
| - HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: HarmBlockThreshold.BLOCK_NONE, |
408 |
| - HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: HarmBlockThreshold.BLOCK_NONE, |
409 |
| - } |
410 | 403 | model = GenerativeModel(model_name=model_name,
|
411 | 404 | generation_config=config,
|
412 | 405 | #safety_settings=safety_settings,
|
@@ -805,7 +798,7 @@ def app():
|
805 | 798 | allowed_iframe_parents=["https://google.github.io"]
|
806 | 799 | ),
|
807 | 800 | )
|
808 |
| -def page(): |
| 801 | +def marketing_page(): |
809 | 802 | state = me.state(State)
|
810 | 803 | # Main header
|
811 | 804 | vertex_gemini_header()
|
@@ -916,7 +909,7 @@ def page():
|
916 | 909 | allowed_iframe_parents=["https://google.github.io"]
|
917 | 910 | ),
|
918 | 911 | )
|
919 |
| -def page(): |
| 912 | +def image_playground_page(): |
920 | 913 | state = me.state(State)
|
921 | 914 | # Main header
|
922 | 915 | vertex_gemini_header()
|
@@ -1313,7 +1306,7 @@ def image_furniture_tab():
|
1313 | 1306 | allowed_iframe_parents=["https://google.github.io"]
|
1314 | 1307 | ),
|
1315 | 1308 | )
|
1316 |
| -def page(): |
| 1309 | +def video_playground_page(): |
1317 | 1310 | state = me.state(State)
|
1318 | 1311 | # Main header
|
1319 | 1312 | vertex_gemini_header()
|
|
0 commit comments