someshb07 commited on
Commit
69f6746
·
verified ·
1 Parent(s): 08c9743

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  def get_fores_code(language):
2
  # Loop through the list of languages
3
  for entry in languages['languages']:
 
1
+ import torch
2
+ import gradio as gr
3
+
4
+ # Use a pipeline as a high-level helper
5
+ from transformers import pipeline
6
+
7
+ pipe = pipeline("translation", model="facebook/nllb-200-distilled-600M", torch_dtype = torch.bfloat16)
8
+
9
  def get_fores_code(language):
10
  # Loop through the list of languages
11
  for entry in languages['languages']: