Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -43,15 +43,15 @@ def provide_advice(table_data: pd.DataFrame, hs_code: str, year: str, month: str
|
|
43 |
prompt = (
|
44 |
f"The following table shows countries that imported the product '{product_name}' with HS code {hs_code} during the period {period}:\n"
|
45 |
f"{table_str}\n\n"
|
46 |
-
f"
|
47 |
)
|
48 |
print("پرامپت ساختهشده:")
|
49 |
print(prompt)
|
50 |
try:
|
51 |
-
print("در حال فراخوانی مدل
|
52 |
outputs = client.text_generation(
|
53 |
prompt=prompt,
|
54 |
-
model="
|
55 |
max_new_tokens=1024
|
56 |
)
|
57 |
print("خروجی مدل دریافت شد (به انگلیسی):")
|
|
|
43 |
prompt = (
|
44 |
f"The following table shows countries that imported the product '{product_name}' with HS code {hs_code} during the period {period}:\n"
|
45 |
f"{table_str}\n\n"
|
46 |
+
f"Please provide a detailed and comprehensive analysis in two paragraphs. The first paragraph should discuss market opportunities, potential demand, and specific cultural or economic factors influencing the demand for this product in these countries. The second paragraph should offer actionable strategic recommendations for exporters, including detailed trade strategies, risk management techniques, and steps to establish local partnerships."
|
47 |
)
|
48 |
print("پرامپت ساختهشده:")
|
49 |
print(prompt)
|
50 |
try:
|
51 |
+
print("در حال فراخوانی مدل meta-llama/Llama-2-7b-chat...")
|
52 |
outputs = client.text_generation(
|
53 |
prompt=prompt,
|
54 |
+
model="meta-llama/Llama-2-7b-chat", # مدل جدید
|
55 |
max_new_tokens=1024
|
56 |
)
|
57 |
print("خروجی مدل دریافت شد (به انگلیسی):")
|