RihemXX commited on
Commit
913bd3a
·
verified ·
1 Parent(s): 3ab956b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -640,8 +640,9 @@ def build_demo():
640
 
641
  return demo
642
  # --- API endpoint: /chat ---
 
643
 
644
- def http_api_infer(question: str):
645
  # NOTE: No request here – Gradio will not inject it automatically
646
  # So remove token checking (or add later via FastAPI if needed)
647
 
@@ -687,7 +688,6 @@ api_interface = gr.Interface(
687
  )
688
 
689
 
690
-
691
  if __name__ == "__main__":
692
  parser = argparse.ArgumentParser()
693
  parser.add_argument("--host", type=str, default="0.0.0.0")
@@ -716,3 +716,4 @@ if __name__ == "__main__":
716
  )
717
 
718
 
 
 
640
 
641
  return demo
642
  # --- API endpoint: /chat ---
643
+ # --- API endpoint: /chat ---
644
 
645
+ def http_api_infer(question: str):
646
  # NOTE: No request here – Gradio will not inject it automatically
647
  # So remove token checking (or add later via FastAPI if needed)
648
 
 
688
  )
689
 
690
 
 
691
  if __name__ == "__main__":
692
  parser = argparse.ArgumentParser()
693
  parser.add_argument("--host", type=str, default="0.0.0.0")
 
716
  )
717
 
718
 
719
+