mastershlfu commited on
Commit
2f57b59
·
1 Parent(s): f62431b

Fix app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,8 +1,7 @@
1
  import gradio as gr
2
  import pandas as pd
3
- import analyze_embedding # Gọi file logic của bà vô
4
 
5
- # Biến này tui set sẵn vài câu mẫu cho sếp vô có cái test liền
6
  default_base_text = """Tôi rất thích nghiên cứu về Trí tuệ nhân tạo.
7
  I love studying Artificial Intelligence.
8
  Con mèo đang ngủ trên ghế sofa.
@@ -39,7 +38,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
39
  table_output = gr.Dataframe()
40
 
41
  analyze_btn.click(
42
- fn=analyze_embedding.process_all_models, # Tên hàm bà tự sửa lại cho khớp với file logic nha
43
  inputs=[user_input, base_input],
44
  outputs=[plot_sbert, plot_e5, plot_bge, table_output]
45
  )
 
1
  import gradio as gr
2
  import pandas as pd
3
+ import analyze_embedding
4
 
 
5
  default_base_text = """Tôi rất thích nghiên cứu về Trí tuệ nhân tạo.
6
  I love studying Artificial Intelligence.
7
  Con mèo đang ngủ trên ghế sofa.
 
38
  table_output = gr.Dataframe()
39
 
40
  analyze_btn.click(
41
+ fn=analyze_embedding.process_embedding_analysis, # Tên hàm bà tự sửa lại cho khớp với file logic nha
42
  inputs=[user_input, base_input],
43
  outputs=[plot_sbert, plot_e5, plot_bge, table_output]
44
  )