Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import time
|
|
5 |
from dotenv import load_dotenv
|
6 |
from styles import get_custom_css, get_response_html_wrapper
|
7 |
from formulas import offer_formulas
|
8 |
-
from prompts import create_offer_instruction
|
9 |
import PyPDF2
|
10 |
import docx
|
11 |
from PIL import Image
|
@@ -197,11 +197,12 @@ with col2:
|
|
197 |
product_name = "Producto/Servicio"
|
198 |
|
199 |
# Get the instruction using the formula
|
|
|
200 |
instruction = create_offer_instruction(
|
201 |
avatar_description=avatar_description,
|
202 |
product_name=product_name,
|
203 |
-
selected_formula_name=
|
204 |
-
offer_formulas=offer_formulas
|
205 |
)
|
206 |
|
207 |
# Add additional context based on input type
|
|
|
5 |
from dotenv import load_dotenv
|
6 |
from styles import get_custom_css, get_response_html_wrapper
|
7 |
from formulas import offer_formulas
|
8 |
+
from prompts import create_offer_instruction, create_promise_instruction
|
9 |
import PyPDF2
|
10 |
import docx
|
11 |
from PIL import Image
|
|
|
197 |
product_name = "Producto/Servicio"
|
198 |
|
199 |
# Get the instruction using the formula
|
200 |
+
# Usar la funci贸n actualizada
|
201 |
instruction = create_offer_instruction(
|
202 |
avatar_description=avatar_description,
|
203 |
product_name=product_name,
|
204 |
+
selected_formula_name=selected_formula_name,
|
205 |
+
offer_formulas=offer_formulas
|
206 |
)
|
207 |
|
208 |
# Add additional context based on input type
|