MelisaRS commited on
Commit
266c675
verified
1 Parent(s): 734da0f

modify prompt_1

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -17,18 +17,20 @@ generator = pipeline("text-generation", model="meta-llama/Llama-3.2-1B-Instruct"
17
  # T铆tulo de la app en Streamlit
18
  st.title("Generador de Texto con LLaMA 3.2")
19
 
 
 
 
20
  #text of test
21
  text = f"""El sistema CRISPR-Cas9 permite una edici贸n precisa del genoma mediante la creaci贸n de rupturas de doble cadena en ubicaciones espec铆ficas del ADN, lo que facilita modificaciones gen茅ticas espec铆ficas."""
22
 
23
  #prompt
24
  prompt_1 = f"""
25
  Perform the following actions:
26
- 1 - Identify the main theme of the text.
27
- 2 - Determine the tone in which the text is written.
28
- 3 - Rewrite this text, which is in medical technical terms, into simpler words so that people who do not know much about medicine can understand it while maintaining the accuracy of the information.
29
  4 - Translate text to English, Arabic and French maintaining the accuracy of the information.
30
- 5 - Output a json object that contains the following
31
- keys: id, main_text, tone, lenguage, text.
32
 
33
  Separate your answers with line breaks.
34
 
 
17
  # T铆tulo de la app en Streamlit
18
  st.title("Generador de Texto con LLaMA 3.2")
19
 
20
+ # T铆tulo exercise 1
21
+ st.title("Exercise 1")
22
+
23
  #text of test
24
  text = f"""El sistema CRISPR-Cas9 permite una edici贸n precisa del genoma mediante la creaci贸n de rupturas de doble cadena en ubicaciones espec铆ficas del ADN, lo que facilita modificaciones gen茅ticas espec铆ficas."""
25
 
26
  #prompt
27
  prompt_1 = f"""
28
  Perform the following actions:
29
+ 1 - Rewrite the text, which is in medical technical terms, into simple words so that anyone who doesn't know much about medicine can understand it while maintaining the accuracy of the information.
30
+ 2 - Identify the main theme of the text.
31
+ 3 - Determine the tone in which the text is written.
32
  4 - Translate text to English, Arabic and French maintaining the accuracy of the information.
33
+ 5 - Output a json object that contains the following keys: id, main_text, tone, lenguage, text.
 
34
 
35
  Separate your answers with line breaks.
36