SarahXia0405 commited on
Commit
cbd9c19
·
verified ·
1 Parent(s): 2880ccd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py CHANGED
@@ -353,5 +353,24 @@ with gr.Blocks(title="Clare – Hanbridge AI Teaching Assistant") as demo:
353
  [summary_box],
354
  )
355
 
 
 
356
  if __name__ == "__main__":
357
  demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
353
  [summary_box],
354
  )
355
 
356
+
357
+
358
  if __name__ == "__main__":
359
  demo.launch()
360
+
361
+ import os
362
+
363
+ def test_langsmith():
364
+ print("=== Running LangSmith smoke test ===")
365
+ os.system("python langsmith_smoketest.py")
366
+ print("=== Done ===")
367
+
368
+ with gr.Blocks() as demo:
369
+ ...
370
+ gr.Button("Run LangSmith Test").click(
371
+ test_langsmith,
372
+ inputs=None,
373
+ outputs=None
374
+ )
375
+
376
+ demo.launch()