ParthSadaria commited on
Commit
dcd42eb
·
verified ·
1 Parent(s): 5ff78b1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -1
main.py CHANGED
@@ -407,7 +407,13 @@ async def playground():
407
  if html_content is None:
408
  return HTMLResponse(content="<h1>image-playground.html not found</h1>", status_code=404)
409
  return HTMLResponse(content=html_content)
410
-
 
 
 
 
 
 
411
  # Model routes
412
  @app.get("/api/v1/models")
413
  @app.get("/models")
 
407
  if html_content is None:
408
  return HTMLResponse(content="<h1>image-playground.html not found</h1>", status_code=404)
409
  return HTMLResponse(content=html_content)
410
+ @app.get("/vetra", response_class=HTMLResponse)
411
+ async def playground():
412
+ html_content = read_html_file("Rulebased-Chatbot.html")
413
+ if html_content is None:
414
+ return HTMLResponse(content="<h1>image-playground.html not found</h1>", status_code=404)
415
+ return HTMLResponse(content=html_content)
416
+
417
  # Model routes
418
  @app.get("/api/v1/models")
419
  @app.get("/models")