BusinessDev commited on
Commit
da16864
1 Parent(s): f2eeb87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,11 +1,13 @@
1
  from transformers import MBartForConditionalGeneration, MBart50Tokenizer
2
  import gradio as gr
 
3
 
 
4
  # Load the model and tokenizer
5
  model_name = "LocalDoc/mbart_large_qa_azerbaijan"
6
  tokenizer = MBart50Tokenizer.from_pretrained(model_name, src_lang="en_XX", tgt_lang="az_AZ")
7
  model = MBartForConditionalGeneration.from_pretrained(model_name)
8
-
9
 
10
 
11
 
@@ -35,4 +37,4 @@ demo = gr.Interface(
35
  )
36
 
37
 
38
- demo.launch()
 
1
  from transformers import MBartForConditionalGeneration, MBart50Tokenizer
2
  import gradio as gr
3
+ import train as tr
4
 
5
+ '''
6
  # Load the model and tokenizer
7
  model_name = "LocalDoc/mbart_large_qa_azerbaijan"
8
  tokenizer = MBart50Tokenizer.from_pretrained(model_name, src_lang="en_XX", tgt_lang="az_AZ")
9
  model = MBartForConditionalGeneration.from_pretrained(model_name)
10
+ '''
11
 
12
 
13
 
 
37
  )
38
 
39
 
40
+ #demo.launch()