Spaces:
Build error
Build error
modify prompt
Browse files
app.py
CHANGED
|
@@ -20,12 +20,30 @@ st.title("Generador de Texto con LLaMA 3.2")
|
|
| 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 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
promp = f"""
|
| 25 |
Translate text to English, Arabic and French delimited by triple backticks.
|
| 26 |
|
| 27 |
Text : ```{text}```
|
| 28 |
"""
|
|
|
|
| 29 |
|
| 30 |
# Cuadro de texto para que el usuario escriba el prompt
|
| 31 |
#prompt = st.text_input("Escribe tu prompt", "Hola, 驴c贸mo est谩s?")
|
|
|
|
| 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 |
+
|
| 35 |
+
Text:
|
| 36 |
+
|
| 37 |
+
```{text}```
|
| 38 |
+
"""
|
| 39 |
+
|
| 40 |
+
"""
|
| 41 |
promp = f"""
|
| 42 |
Translate text to English, Arabic and French delimited by triple backticks.
|
| 43 |
|
| 44 |
Text : ```{text}```
|
| 45 |
"""
|
| 46 |
+
"""
|
| 47 |
|
| 48 |
# Cuadro de texto para que el usuario escriba el prompt
|
| 49 |
#prompt = st.text_input("Escribe tu prompt", "Hola, 驴c贸mo est谩s?")
|