merve HF staff commited on
Commit
ba01e7c
1 Parent(s): f9b8716

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -15
app.py CHANGED
@@ -22,23 +22,37 @@ t2t_example = [["Paraphrase: Bu üründen çok memnun kaldım."]]
22
  nli_example = [["Bunu çok beğendim. Bunu çok sevdim."]]
23
 
24
 
25
- t2t_gen_model = pipeline("boun-tabi-LMG/TURNA", device=0) examples =t2t_example, title="Text-to-Text Generation", description="Please enter an instruction with a prefix to generate.")
26
- summarization_model = pipeline("boun-tabi-LMG/turna_summarization_mlsum", device=0) examples =long_text, title="Summarization", description="TURNA fine-tuned on MLSUM. Enter a text to summarize below.")
27
- news_sum = pipeline("boun-tabi-LMG/turna_summarization_tr_news", device=0) examples =long_text, title="News Summarization", description="TURNA fine-tuned on News summarization. Enter a news to summarize.")
28
- paraphrasing = pipeline("boun-tabi-LMG/turna_paraphrasing_tatoeba", device=0) examples =long_text,title="Paraphrasing")
29
- paraphrasing_sub = pipeline("boun-tabi-LMG/turna_paraphrasing_opensubtitles", device=0) examples =long_text, title="Paraphrasing on Subtitles")
 
 
 
 
 
30
 
31
  ttc = pipeline("boun-tabi-LMG/turna_classification_ttc4900", device=0) examples =long_text, title="Text Categorization")
32
- product_reviews = pipeline("boun-tabi-LMG/turna_classification_tr_product_reviews", device=0) examples=sentiment_example, title="Product Reviews Categorization")
33
- title_gen = pipeline("boun-tabi-LMG/turna_title_generation_mlsum", device=0) examples =long_text, title="Title Generation", description="Enter a text to generate title to.")
34
- sentiment_model = pipeline("boun-tabi-LMG/turna_classification_17bintweet_sentiment", device=0) examples=sentiment_example, title="Sentiment Analysis", description="Enter a text to generate title to.")
35
-
36
- pos_imst = pipeline("boun-tabi-LMG/turna_pos_imst", device=0) title="Part of Speech Tagging", examples=ner_example,description="Enter a text to generate title to.")
37
- nli_model = pipeline("boun-tabi-LMG/turna_nli_nli_tr", device=0) title="NLI",examples=nli_example, description="Enter two texts to infer entailment.")
38
- pos_boun = pipeline("boun-tabi-LMG/turna_pos_boun", device=0) examples = ner_example, title="Part of Speech Tagging", description="Enter a text to tag parts of speech (POS).")
39
- stsb_model = pipeline("boun-tabi-LMG/turna_semantic_similarity_stsb_tr", device=0) examples=nli_example, title="Semantic Similarity", description="Enter two texts in the input to assess semantic similarity.")
40
- ner_model = pipeline("boun-tabi-LMG/turna_ner_milliyet", device=0) title="NER WikiANN", examples=ner_example, description="Enter a text for NER.")
41
- ner_wikiann = pipeline("boun-tabi-LMG/turna_ner_wikiann", device=0) title="NER",examples=ner_example, description="Enter a text for NER.")
 
 
 
 
 
 
 
 
 
42
 
43
 
44
  @spaces.GPU
 
22
  nli_example = [["Bunu çok beğendim. Bunu çok sevdim."]]
23
 
24
 
25
+ t2t_gen_model = pipeline("boun-tabi-LMG/TURNA", device=0)
26
+ # examples =t2t_example, title="Text-to-Text Generation", description="Please enter an instruction with a prefix to generate.")
27
+ summarization_model = pipeline("boun-tabi-LMG/turna_summarization_mlsum", device=0)
28
+ # examples =long_text, title="Summarization", description="TURNA fine-tuned on MLSUM. Enter a text to summarize below.")
29
+ news_sum = pipeline("boun-tabi-LMG/turna_summarization_tr_news", device=0)
30
+ # examples =long_text, title="News Summarization", description="TURNA fine-tuned on News summarization. Enter a news to summarize.")
31
+ paraphrasing = pipeline("boun-tabi-LMG/turna_paraphrasing_tatoeba", device=0)
32
+ # examples =long_text,title="Paraphrasing")
33
+ paraphrasing_sub = pipeline("boun-tabi-LMG/turna_paraphrasing_opensubtitles", device=0)
34
+ # examples =long_text, title="Paraphrasing on Subtitles")
35
 
36
  ttc = pipeline("boun-tabi-LMG/turna_classification_ttc4900", device=0) examples =long_text, title="Text Categorization")
37
+ product_reviews = pipeline("boun-tabi-LMG/turna_classification_tr_product_reviews", device=0)
38
+ # examples=sentiment_example, title="Product Reviews Categorization")
39
+ title_gen = pipeline("boun-tabi-LMG/turna_title_generation_mlsum", device=0)
40
+ # examples =long_text, title="Title Generation", description="Enter a text to generate title to.")
41
+ sentiment_model = pipeline("boun-tabi-LMG/turna_classification_17bintweet_sentiment", device=0)
42
+ #examples=sentiment_example, title="Sentiment Analysis", description="Enter a text to generate title to.")
43
+
44
+ pos_imst = pipeline("boun-tabi-LMG/turna_pos_imst", device=0)
45
+ # title="Part of Speech Tagging", examples=ner_example,description="Enter a text to generate title to.")
46
+ nli_model = pipeline("boun-tabi-LMG/turna_nli_nli_tr", device=0)
47
+ # title="NLI",examples=nli_example, description="Enter two texts to infer entailment.")
48
+ pos_boun = pipeline("boun-tabi-LMG/turna_pos_boun", device=0)
49
+ # examples = ner_example, title="Part of Speech Tagging", description="Enter a text to tag parts of speech (POS).")
50
+ stsb_model = pipeline("boun-tabi-LMG/turna_semantic_similarity_stsb_tr", device=0)
51
+ # examples=nli_example, title="Semantic Similarity", description="Enter two texts in the input to assess semantic similarity.")
52
+ ner_model = pipeline("boun-tabi-LMG/turna_ner_milliyet", device=0)
53
+ # title="NER WikiANN", examples=ner_example, description="Enter a text for NER.")
54
+ ner_wikiann = pipeline("boun-tabi-LMG/turna_ner_wikiann", device=0)
55
+ #title="NER",examples=ner_example, description="Enter a text for NER.")
56
 
57
 
58
  @spaces.GPU