martin8 commited on
Commit
cf731f2
1 Parent(s): 114223e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -46
app.py CHANGED
@@ -756,49 +756,5 @@ page_names_to_funcs = {
756
  "Compare Model Outputs on Text Summarization": text_summarization
757
  }
758
 
759
- demo_name = st.sidebar.selectbox("Find the best model for your next AI task or compare model outputs", page_names_to_funcs.keys())
760
- page_names_to_funcs[demo_name]()
761
-
762
-
763
-
764
- # st.write("Recommended Most Popular Model for category ",top_cat, " is:",top_models[0])
765
- # if st.button("Show more"):
766
- # for i in range(1,len(top_models)):
767
- # st.write("Model#",str(i+1),top_models[i])
768
-
769
-
770
- # data = prompt
771
-
772
- # # print("before len data")
773
-
774
- # if len(data) != 0:
775
- # # print("after len data")
776
- # st.write("Recommended Task category: ",top_cats[0])
777
- # st.write("Recommended Most Popular Model for category ",top_cats[0], " is:",top_models[0])
778
- # if st.button("Show more"):
779
- # for i in range(1,len(top_models)):
780
- # st.write("Model#",str(i+1),top_models[i])
781
-
782
- # st.write("Upload your file: ")
783
- # uploaded_files = ""
784
- # uploaded_files = st.file_uploader("Choose a text file", accept_multiple_files=True)
785
- # if st.button("Select"):
786
- # global file_data
787
- # st.write("filename:", uploaded_files)
788
- # for uploaded_file in uploaded_files:
789
- # # print("here")
790
- # file_data = open(uploaded_file.name,encoding="utf8").read()
791
- # st.write("filename:", uploaded_file.name)
792
- # # st.write(file_data[:500])
793
- # # print("before summarizer")
794
- # print(file_data[:500])
795
- # analysis = summarizer(models = top_models, data = file_data[:500])
796
- # # print("between summarizer analysis")
797
-
798
- # z,x,c,v,b = best_model(analysis,file_data[:500])
799
- # st.write("Best model for Task: ",z)
800
- # st.write("\nBest model name: ",x)
801
- # st.write("\nBest model Score: ",c)
802
- # st.write("\nOriginal Data first 500 characters: ", v)
803
- # st.write("\nBest Model Result: ",b)
804
- # st.success(result)
 
756
  "Compare Model Outputs on Text Summarization": text_summarization
757
  }
758
 
759
+ demo_name = st.sidebar.selectbox("Choose a demo of model selector or compare inference outputs:", page_names_to_funcs.keys())
760
+ page_names_to_funcs[demo_name]()