Aniruddh commited on
Commit
a1c083f
·
1 Parent(s): 1897dd4

changes to llm info generation

Browse files
app/src/components/Popup.jsx CHANGED
@@ -17,7 +17,7 @@ function Popup({ selectedShape, onClose, zoom = 1 }) {
17
  useEffect(() => {
18
  if (!selectedShape || selectedShape.r) return;
19
  setInfo("Loading...");
20
- fetch("/llm/generate_info/", {
21
  method: "POST",
22
  headers: { "Content-Type": "application/json" },
23
  body: JSON.stringify({ content: selectedShape.text || "Unlabeled text" }),
 
17
  useEffect(() => {
18
  if (!selectedShape || selectedShape.r) return;
19
  setInfo("Loading...");
20
+ fetch("/llm/generate_info", {
21
  method: "POST",
22
  headers: { "Content-Type": "application/json" },
23
  body: JSON.stringify({ content: selectedShape.text || "Unlabeled text" }),
backend/routes/llm.py CHANGED
@@ -66,6 +66,7 @@ def generate_info_from_llm(text: str) -> str:
66
 
67
 
68
  @router.post("/generate_info")
 
69
  async def generate_info_endpoint(request: LLMRequest):
70
  """
71
  FastAPI endpoint to generate simplified information from user text.
 
66
 
67
 
68
  @router.post("/generate_info")
69
+ print('generate info called -- ')
70
  async def generate_info_endpoint(request: LLMRequest):
71
  """
72
  FastAPI endpoint to generate simplified information from user text.