TrungNQ commited on
Commit
26c73e8
·
verified ·
1 Parent(s): a3ac2b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -121,7 +121,7 @@ out=grad.Textbox(lines=1, label="Summary")
121
  grad.Interface(text2text_summary, inputs=para, outputs=out).launch()
122
  '''
123
 
124
- #5.28
125
  from transformers import AutoModelForCausalLM, AutoTokenizer,BlenderbotForConditionalGeneration
126
  import torch
127
 
@@ -184,4 +184,13 @@ grad.Interface(fn=converse,
184
  theme="default",
185
  inputs=[text, "state"],
186
  outputs=["html", "state"],
187
- css=css).launch()
 
 
 
 
 
 
 
 
 
 
121
  grad.Interface(text2text_summary, inputs=para, outputs=out).launch()
122
  '''
123
 
124
+ '''5.28
125
  from transformers import AutoModelForCausalLM, AutoTokenizer,BlenderbotForConditionalGeneration
126
  import torch
127
 
 
184
  theme="default",
185
  inputs=[text, "state"],
186
  outputs=["html", "state"],
187
+ css=css).launch()
188
+ '''
189
+
190
+ from datasets import list_datasets
191
+ all_datasets = list_datasets()
192
+ print(f"There are {len(all_datasets)} datasets currently available on the Hub") print(f"The first 10 are: {all_datasets[:10]}")
193
+ There are 1753 datasets currently available on the Hub
194
+ The first 10 are: ['acronym_identification', 'ade_corpus_v2', 'adversarial_qa',
195
+ 'aeslc', 'afrikaans_ner_corpus', 'ag_news', 'ai2_arc', 'air_dialogue',
196
+ 'ajgt_twitter_ar', 'allegro_reviews']