Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,21 +6,6 @@ from langchain_openai import ChatOpenAI
|
|
6 |
from langchain_anthropic import ChatAnthropic
|
7 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
8 |
|
9 |
-
# Style adjustments (optional, remove if not needed)
|
10 |
-
st.markdown(
|
11 |
-
"""
|
12 |
-
<style>
|
13 |
-
/* Custom style adjustments */
|
14 |
-
.st-emotion-cache-15ecox0 { display: none !important; }
|
15 |
-
@media (max-width: 50.5rem) {
|
16 |
-
.st-emotion-cache-13ln4jf {
|
17 |
-
max-width: calc(0rem + 100vw);
|
18 |
-
}
|
19 |
-
}
|
20 |
-
</style>
|
21 |
-
""",
|
22 |
-
unsafe_allow_html=True,
|
23 |
-
)
|
24 |
|
25 |
PROMPT = """
|
26 |
次の文を修正してください。
|
@@ -59,6 +44,21 @@ def init_chain():
|
|
59 |
|
60 |
def main():
|
61 |
init_page()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
chain = init_chain()
|
63 |
if chain:
|
64 |
text = st.text_area("ここに日本語のテキストを入力してください:", key="text")
|
|
|
6 |
from langchain_anthropic import ChatAnthropic
|
7 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
PROMPT = """
|
11 |
次の文を修正してください。
|
|
|
44 |
|
45 |
def main():
|
46 |
init_page()
|
47 |
+
# Style adjustments (optional, remove if not needed)
|
48 |
+
st.markdown(
|
49 |
+
"""
|
50 |
+
<style>
|
51 |
+
/* Custom style adjustments */
|
52 |
+
.st-emotion-cache-15ecox0 { display: none !important; }
|
53 |
+
@media (max-width: 50.5rem) {
|
54 |
+
.st-emotion-cache-13ln4jf {
|
55 |
+
max-width: calc(0rem + 100vw);
|
56 |
+
}
|
57 |
+
}
|
58 |
+
</style>
|
59 |
+
""",
|
60 |
+
unsafe_allow_html=True,
|
61 |
+
)
|
62 |
chain = init_chain()
|
63 |
if chain:
|
64 |
text = st.text_area("ここに日本語のテキストを入力してください:", key="text")
|