Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,14 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
| 2 |
from langchain import LLMChain
|
| 3 |
from langchain.prompts import ChatPromptTemplate,PromptTemplate,HumanMessagePromptTemplate
|
| 4 |
from langchain.schema import (
|
| 5 |
HumanMessage,
|
| 6 |
SystemMessage
|
| 7 |
)
|
| 8 |
-
|
| 9 |
-
from langchain_google_genai import GoogleGenerativeAI
|
| 10 |
google_api_key=os.environ["google_api_key"]
|
| 11 |
|
| 12 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
from langchain_google_genai import GoogleGenerativeAI
|
| 5 |
from langchain import LLMChain
|
| 6 |
from langchain.prompts import ChatPromptTemplate,PromptTemplate,HumanMessagePromptTemplate
|
| 7 |
from langchain.schema import (
|
| 8 |
HumanMessage,
|
| 9 |
SystemMessage
|
| 10 |
)
|
| 11 |
+
|
|
|
|
| 12 |
google_api_key=os.environ["google_api_key"]
|
| 13 |
|
| 14 |
|