mbarnig commited on
Commit
4209c4d
1 Parent(s): 09e63de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -6,6 +6,9 @@ from huggingface_hub import hf_hub_download
6
  from transformers import pipeline
7
  from PIL import Image
8
 
 
 
 
9
  model_ernie = hub.Module(name="ernie_vilg")
10
  model_nllb = "facebook/nllb-200-distilled-600M"
11
  translator = pipeline("translation", model=model_nllb)
@@ -71,6 +74,8 @@ def create(prompt, style):
71
  demo = gr.Interface(
72
  fn=create,
73
  inputs=myInputs,
74
- outputs=myOutputs
 
 
75
  )
76
  demo.launch()
 
6
  from transformers import pipeline
7
  from PIL import Image
8
 
9
+ myTitle = "🎨 Mol mer e Bild ! 🇱🇺"
10
+ myDescription = "### Beschreif an e puer Wierder wéi ee Bild de chineeseschen AI-Model ERNIE-ViLG Dir soll molen. Probéier richteg Lëtzebuergesch ze schreiwen fir Iwwersetzungsfeeler ze reduzéieren. Du kann Dir vum Spellchecker oder LOD dobäi hëllefen loossen. Vill Spaass!"
11
+
12
  model_ernie = hub.Module(name="ernie_vilg")
13
  model_nllb = "facebook/nllb-200-distilled-600M"
14
  translator = pipeline("translation", model=model_nllb)
 
74
  demo = gr.Interface(
75
  fn=create,
76
  inputs=myInputs,
77
+ outputs=myOutputs,
78
+ title=myTitle,
79
+ description=myDescription
80
  )
81
  demo.launch()