vasu0508 commited on
Commit
2f9bbf9
·
1 Parent(s): d86e66b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -7,14 +7,14 @@ Original file is located at
7
  https://colab.research.google.com/drive/1-IfUcnDUppyMArHonc_iesEcN2gSKU-j
8
  """
9
 
10
- !pip3 install transformers
11
- !pip install -q translate
12
- !pip install polyglot
13
 
14
- !pip install Pyicu
15
 
16
- !pip install Morfessor
17
- !pip install pycld2
18
 
19
  from transformers import AutoModelForCausalLM, AutoTokenizer
20
  import torch
@@ -54,7 +54,7 @@ model = AutoModelForCausalLM.from_pretrained(model_name)
54
 
55
  # print(f">> Meena:> {translated_output}")
56
 
57
- !pip install gradio
58
 
59
  import gradio as gr
60
 
@@ -87,4 +87,4 @@ output_text=gr.Textbox()
87
  gr.Interface(generate_text,"textbox",output_text,title="Meena",
88
  description="Meena- Amultilingual Chatbot").launch(debug=False,share=True)
89
 
90
- !gradio deploy
 
7
  https://colab.research.google.com/drive/1-IfUcnDUppyMArHonc_iesEcN2gSKU-j
8
  """
9
 
10
+ #!pip3 install transformers
11
+ #!pip install -q translate
12
+ #!pip install polyglot
13
 
14
+ #!pip install Pyicu
15
 
16
+ #!pip install Morfessor
17
+ #!pip install pycld2
18
 
19
  from transformers import AutoModelForCausalLM, AutoTokenizer
20
  import torch
 
54
 
55
  # print(f">> Meena:> {translated_output}")
56
 
57
+ #!pip install gradio
58
 
59
  import gradio as gr
60
 
 
87
  gr.Interface(generate_text,"textbox",output_text,title="Meena",
88
  description="Meena- Amultilingual Chatbot").launch(debug=False,share=True)
89
 
90
+ #!gradio deploy