From 29947351e0b6e193c9c9e046d28c87886c139a6d Mon Sep 17 00:00:00 2001 From: Chen Liang Date: Sun, 4 Feb 2024 10:55:49 -0600 Subject: [PATCH] changed to streamlit app --- app2.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app2.py b/app2.py index 0714f5b..cdb8507 100644 --- a/app2.py +++ b/app2.py @@ -236,19 +236,19 @@ def app(): st.info(result["output"]) -# if __name__ == "__main__": -# # test() # Local Testing -# app() # Streamlit webapp +if __name__ == "__main__": + # test() # Local Testing + app() # Streamlit webapp -# FastAPI service -api = FastAPI() +# # FastAPI service +# api = FastAPI() -class Query(BaseModelv2): - topic: str +# class Query(BaseModelv2): +# topic: str -@api.post("/") -def service(query: Query): - topic = query.topic - result = do_research(topic) - return result +# @api.post("/") +# def service(query: Query): +# topic = query.topic +# result = do_research(topic) +# return result