subhuatharva
commited on
Commit
•
0caeae3
1
Parent(s):
7fba8a1
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def model_output(image):
|
|
76 |
predictions = predictions.float().numpy().flatten()
|
77 |
pred_labels = one_hot_decoding(predictions)
|
78 |
output_text = " ".join(pred_labels)
|
79 |
-
query = f"summarize the classified satellite image labels {output_text} and summarize if or how these factors can cause deforestation"
|
80 |
|
81 |
api_key = os.getenv("FIREWORKS_API_KEY")
|
82 |
llm = ChatFireworks(api_key=api_key, model="accounts/fireworks/models/mixtral-8x7b-instruct")
|
|
|
76 |
predictions = predictions.float().numpy().flatten()
|
77 |
pred_labels = one_hot_decoding(predictions)
|
78 |
output_text = " ".join(pred_labels)
|
79 |
+
query = f"summarize the classified satellite image labels {output_text} and summarize if or how these factors can cause deforestation. Don't write a conversational line."
|
80 |
|
81 |
api_key = os.getenv("FIREWORKS_API_KEY")
|
82 |
llm = ChatFireworks(api_key=api_key, model="accounts/fireworks/models/mixtral-8x7b-instruct")
|