Update app.py
Browse files
app.py
CHANGED
@@ -128,9 +128,11 @@ if __name__ == "__main__":
|
|
128 |
)
|
129 |
st.header("π Patent Chat: Google Patents Chat Demo")
|
130 |
|
|
|
|
|
|
|
|
|
131 |
# Input for Google Patent Link
|
132 |
-
query_params = st.experimental_get_query_params()
|
133 |
-
default_patent_link = query_params.get("patent_link", ["https://patents.google.com/patent/US8676427B1/en"])[0]
|
134 |
patent_link = st.text_area("Enter Google Patent Link:", value=default_patent_link, height=100)
|
135 |
|
136 |
# Button to start processing
|
|
|
128 |
)
|
129 |
st.header("π Patent Chat: Google Patents Chat Demo")
|
130 |
|
131 |
+
# Fetch query parameters safely
|
132 |
+
query_params = st.query_params
|
133 |
+
default_patent_link = query_params.get("patent_link", "https://patents.google.com/patent/US8676427B1/en")
|
134 |
+
|
135 |
# Input for Google Patent Link
|
|
|
|
|
136 |
patent_link = st.text_area("Enter Google Patent Link:", value=default_patent_link, height=100)
|
137 |
|
138 |
# Button to start processing
|