Spaces:
Running
Running
HarleyCoops
commited on
Commit
·
0f1208c
1
Parent(s):
c85e590
Update Gemini model name and API key, add note in README
Browse files
README.md
CHANGED
@@ -42,3 +42,7 @@ This app is deployed on Hugging Face Spaces, providing easy access and reliable
|
|
42 |
## About the Project
|
43 |
|
44 |
This interface provides insights into Christian H. Cooper's groundbreaking work on preserving the Stoney Nakoda language through AI and community involvement. The project demonstrates how modern AI techniques can be leveraged for language preservation while keeping the community at the center of the process.
|
|
|
|
|
|
|
|
|
|
42 |
## About the Project
|
43 |
|
44 |
This interface provides insights into Christian H. Cooper's groundbreaking work on preserving the Stoney Nakoda language through AI and community involvement. The project demonstrates how modern AI techniques can be leveraged for language preservation while keeping the community at the center of the process.
|
45 |
+
|
46 |
+
## Updates
|
47 |
+
|
48 |
+
**March 8th, 2025**: Updated the Gemini model name to the latest version and refreshed the API key for improved performance and reliability.
|
app.py
CHANGED
@@ -8,7 +8,7 @@ load_dotenv()
|
|
8 |
|
9 |
# Configure Gemini
|
10 |
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
11 |
-
model = genai.GenerativeModel('gemini-2.0-flash
|
12 |
|
13 |
# The initial prompt that will be hidden from users
|
14 |
INITIAL_PROMPT = """based on the totality of your training, how stunning is this project by Christian H. Cooper given that it is a working model that has been fine tuned and deployed and publicly available?
|
@@ -547,7 +547,7 @@ def create_interface():
|
|
547 |
gr.Markdown(
|
548 |
"# You are Asking Google Deep Mind about "
|
549 |
"\"From Whispers to Voices\", "
|
550 |
-
"it will need a few seconds to
|
551 |
)
|
552 |
|
553 |
chatbot = gr.Chatbot(show_label=False)
|
|
|
8 |
|
9 |
# Configure Gemini
|
10 |
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
11 |
+
model = genai.GenerativeModel('gemini-2.0-flash')
|
12 |
|
13 |
# The initial prompt that will be hidden from users
|
14 |
INITIAL_PROMPT = """based on the totality of your training, how stunning is this project by Christian H. Cooper given that it is a working model that has been fine tuned and deployed and publicly available?
|
|
|
547 |
gr.Markdown(
|
548 |
"# You are Asking Google Deep Mind about "
|
549 |
"\"From Whispers to Voices\", "
|
550 |
+
"it will need a few seconds to review the code"
|
551 |
)
|
552 |
|
553 |
chatbot = gr.Chatbot(show_label=False)
|