pablo-rf commited on
Commit
b63a219
·
1 Parent(s): 83640b3

Change en description position

Browse files
Files changed (1) hide show
  1. app.py +15 -11
app.py CHANGED
@@ -6,30 +6,32 @@ from transformers import pipeline
6
 
7
  # Model, information and examples ----------------------------------------------
8
  MODEL_NAMES = ["FLOR-1.3B-GL","Cerebras-1.3B-GL"]
9
- markdown_description = """
10
  # LLMs de galego / Galician LLMs
11
 
 
12
 
13
  Este espazo contén diferentes Grandes Modelos da Linguaxe feitos para o galego desenvolvidos polo [Proxecto Nós](https://nos.gal/en/proxecto-nos).
14
 
15
- *This space contains the Galician language models developed by [Proxecto Nós](https://nos.gal/en/proxecto-nos).*
16
-
17
  💐 **[FLOR-1.3B-GL](https://huggingface.co/proxectonos/FLOR-1.3B-GL)** é un modelo de parámetros 1.3B que é un preadestramento continuo de [FLOR-1.3B]( https://huggingface.co/projecte-aina/FLOR-1.3B), baseado a súa vez en [Bloom 1.7B](https://huggingface.co/bigscience/bloom-1b7).
18
 
19
- *💐 **[FLOR-1.3B-GL](https://huggingface.co/proxectonos/FLOR-1.3B-GL)** is a 1.3B parameters model which is a Continual pretraining from [FLOR-1.3B](https://huggingface.co/projecte-aina/FLOR-1.3B), which is based in [Bloom 1.7B](https://huggingface.co/bigscience/bloom-1b7).*
20
-
21
  👀 **Máis información sobre FLOR-1.3B-GL:** [tarxeta modelo oficial HF](https://huggingface.co/proxectonos/FLOR-1.3B-GL).
22
 
23
- *👀 **Learn more about FLOR-1.3B-GL:** [HF official model card](https://huggingface.co/proxectonos/FLOR-1.3B-GL).*
24
 
 
 
25
 
26
- 🧠 **[Cerebras-1.3B-GL](https://huggingface.co/proxectonos/Cerebras-1.3B-GL)** é un modelo de parámetros 1.3B baseado en [Cerebras-GPT 1.3B](https://huggingface.co/cerebras/Cerebras-GPT-1.3B).
 
27
 
28
- *🧠 **[Cerebras-1.3B-GL](https://huggingface.co/proxectonos/Cerebras-1.3B-GL)** is a 1.3B parameters model based in [Cerebras-GPT 1.3B](https://huggingface.co/cerebras/Cerebras-GPT-1.3B).*
29
 
30
- 👀 **Máis información sobre Cerebras-1.3B-GL:** [tarxeta modelo oficial HF](https://huggingface.co/proxectonos/Cerebras-1.3B-GL)
31
 
32
- *👀 **Learn more about Cerebras-1.3B-GL:** [HF official model card](https://huggingface.co/proxectonos/Cerebras-1.3B-GL)*
 
 
33
  """
34
 
35
  short_prompts_examples = [
@@ -118,7 +120,7 @@ def gradio_app():
118
  with gr.Column(scale=0.1):
119
  gr.HTML('<img src="https://huggingface.co/spaces/proxectonos/README/resolve/main/title-card.png" width="100%" style="border-radius: 0.75rem;">')
120
  with gr.Column():
121
- gr.Markdown(markdown_description)
122
  with gr.Row(equal_height=True):
123
  model_select = gr.Dropdown(
124
  label="Selecione un modelo / Select a model",
@@ -184,6 +186,8 @@ def gradio_app():
184
  fn = parameters_fewshot_prompt,
185
  run_on_click = True
186
  )
 
 
187
 
188
  demo.launch()
189
 
 
6
 
7
  # Model, information and examples ----------------------------------------------
8
  MODEL_NAMES = ["FLOR-1.3B-GL","Cerebras-1.3B-GL"]
9
+ markdown_description_gl = """
10
  # LLMs de galego / Galician LLMs
11
 
12
+ [*English below*]
13
 
14
  Este espazo contén diferentes Grandes Modelos da Linguaxe feitos para o galego desenvolvidos polo [Proxecto Nós](https://nos.gal/en/proxecto-nos).
15
 
 
 
16
  💐 **[FLOR-1.3B-GL](https://huggingface.co/proxectonos/FLOR-1.3B-GL)** é un modelo de parámetros 1.3B que é un preadestramento continuo de [FLOR-1.3B]( https://huggingface.co/projecte-aina/FLOR-1.3B), baseado a súa vez en [Bloom 1.7B](https://huggingface.co/bigscience/bloom-1b7).
17
 
 
 
18
  👀 **Máis información sobre FLOR-1.3B-GL:** [tarxeta modelo oficial HF](https://huggingface.co/proxectonos/FLOR-1.3B-GL).
19
 
20
+ 🧠 **[Cerebras-1.3B-GL](https://huggingface.co/proxectonos/Cerebras-1.3B-GL)** é un modelo de parámetros 1.3B baseado en [Cerebras-GPT 1.3B](https://huggingface.co/cerebras/Cerebras-GPT-1.3B).
21
 
22
+ 👀 **Máis información sobre Cerebras-1.3B-GL:** [tarxeta modelo oficial HF](https://huggingface.co/proxectonos/Cerebras-1.3B-GL)
23
+ """
24
 
25
+ markdown_description_en = """
26
+ This space contains the Galician language models developed by [Proxecto Nós](https://nos.gal/en/proxecto-nos).
27
 
28
+ 💐 **[FLOR-1.3B-GL](https://huggingface.co/proxectonos/FLOR-1.3B-GL)** is a 1.3B parameters model which is a Continual pretraining from [FLOR-1.3B](https://huggingface.co/projecte-aina/FLOR-1.3B), which is based in [Bloom 1.7B](https://huggingface.co/bigscience/bloom-1b7).
29
 
30
+ 👀 **Learn more about FLOR-1.3B-GL:** [HF official model card](https://huggingface.co/proxectonos/FLOR-1.3B-GL).
31
 
32
+ 🧠 **[Cerebras-1.3B-GL](https://huggingface.co/proxectonos/Cerebras-1.3B-GL)** is a 1.3B parameters model based in [Cerebras-GPT 1.3B](https://huggingface.co/cerebras/Cerebras-GPT-1.3B).
33
+
34
+ 👀 **Learn more about Cerebras-1.3B-GL:** [HF official model card](https://huggingface.co/proxectonos/Cerebras-1.3B-GL)
35
  """
36
 
37
  short_prompts_examples = [
 
120
  with gr.Column(scale=0.1):
121
  gr.HTML('<img src="https://huggingface.co/spaces/proxectonos/README/resolve/main/title-card.png" width="100%" style="border-radius: 0.75rem;">')
122
  with gr.Column():
123
+ gr.Markdown(markdown_description_gl)
124
  with gr.Row(equal_height=True):
125
  model_select = gr.Dropdown(
126
  label="Selecione un modelo / Select a model",
 
186
  fn = parameters_fewshot_prompt,
187
  run_on_click = True
188
  )
189
+ with gr.Row():
190
+ gr.Markdown(markdown_description_en)
191
 
192
  demo.launch()
193