Update app.py
Browse files
app.py
CHANGED
|
@@ -12,8 +12,7 @@ def Fake_Data(topic) :
|
|
| 12 |
#response = llm(prompt)
|
| 13 |
#return response
|
| 14 |
# Example corrected code snippet
|
| 15 |
-
llm = ChatGoogleGenerativeAI( model="gemini-pro", google_api_key=st.
|
| 16 |
-
)
|
| 17 |
answers = llm.invoke(prompt)
|
| 18 |
print(answers)
|
| 19 |
answers = answers.content
|
|
|
|
| 12 |
#response = llm(prompt)
|
| 13 |
#return response
|
| 14 |
# Example corrected code snippet
|
| 15 |
+
llm = ChatGoogleGenerativeAI( model="gemini-pro", google_api_key=st.secrets["GOOGLE_API_KEY"])
|
|
|
|
| 16 |
answers = llm.invoke(prompt)
|
| 17 |
print(answers)
|
| 18 |
answers = answers.content
|