朱东升 commited on
Commit
73850c8
·
1 Parent(s): 3af21c3
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -503,6 +503,9 @@ with gr.Blocks(title="代码评估服务", theme=gr.themes.Soft()) as demo:
503
  ```
504
  """)
505
 
 
 
 
506
  if __name__ == "__main__":
507
  demo.queue()
508
  demo.launch()
 
503
  ```
504
  """)
505
 
506
+ # 添加API端点
507
+ demo.launch(api_name="predict")
508
+
509
  if __name__ == "__main__":
510
  demo.queue()
511
  demo.launch()