KarmaCST commited on
Commit
143cb54
1 Parent(s): 5b9d110

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -17
app.py CHANGED
@@ -15,16 +15,6 @@ tokenizer = AutoTokenizer.from_pretrained("KarmaCST/nllb-200-distilled-600M-dz-t
15
  src_lang="dzo_Tibt"
16
  tgt_lang="eng_Latn"
17
 
18
- # def translate_dzongkha_to_english(text):
19
- # translation_pipeline = pipeline("translation",
20
- # model=translation_model,
21
- # tokenizer=tokenizer,
22
- # src_lang=src_lang,
23
- # tgt_lang=tgt_lang)
24
-
25
- # translated_text = translation_pipeline(text)[0]['translation_text']
26
-
27
- # return translated_text
28
 
29
  model = gr.load("models/Purz/face-projection")
30
 
@@ -50,12 +40,6 @@ examples=[
50
  ["པཱ་རོ་ཁྲོམ་གྱི་ཐོག་ཁར་ ཤིང་ཚུ་གི་བར་ན་ གནམ་གྲུ་འཕུར་བའི་འཐོང་གནང་།",None],
51
  ["སློབ་ཕྲུག་ཚུ་ ཆརཔ་ནང་རྐང་རྩེད་རྩེ་དེས།",None]
52
  ]
53
- # examples = [
54
- # ["Humanoid Cat Warrior, Full View", None],
55
- # ["Warhammer Sisterhood", None],
56
- # ["Future Robots war", None],
57
- # ["Fantasy dragon", None]
58
- # ]
59
 
60
  interface = gr.Interface(
61
  fn=generate_image,
@@ -66,7 +50,6 @@ interface = gr.Interface(
66
  outputs=gr.Image(label="Generated Image"),
67
  title="Dzongkha Text to Image Generation",
68
  examples=examples,
69
- theme="NoCrypt/miku",
70
  article="<h1>Created By:</h1>Mr. Karma Wangchuk<br>Lecturer<br>Information Technology Department<br>College of Science and Technology<br>Rinchending Phuentsholing<br>Chhukha Bhutan<br>",
71
  description="Sorry for the inconvenience. The model is currently running on the CPU, which might affect performance. We appreciate your understanding.",
72
  )
 
15
  src_lang="dzo_Tibt"
16
  tgt_lang="eng_Latn"
17
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  model = gr.load("models/Purz/face-projection")
20
 
 
40
  ["པཱ་རོ་ཁྲོམ་གྱི་ཐོག་ཁར་ ཤིང་ཚུ་གི་བར་ན་ གནམ་གྲུ་འཕུར་བའི་འཐོང་གནང་།",None],
41
  ["སློབ་ཕྲུག་ཚུ་ ཆརཔ་ནང་རྐང་རྩེད་རྩེ་དེས།",None]
42
  ]
 
 
 
 
 
 
43
 
44
  interface = gr.Interface(
45
  fn=generate_image,
 
50
  outputs=gr.Image(label="Generated Image"),
51
  title="Dzongkha Text to Image Generation",
52
  examples=examples,
 
53
  article="<h1>Created By:</h1>Mr. Karma Wangchuk<br>Lecturer<br>Information Technology Department<br>College of Science and Technology<br>Rinchending Phuentsholing<br>Chhukha Bhutan<br>",
54
  description="Sorry for the inconvenience. The model is currently running on the CPU, which might affect performance. We appreciate your understanding.",
55
  )