Spaces:
Sleeping
Sleeping
Firas HADJ KACEM commited on
Commit ·
8e83be6
1
Parent(s): 2ce05e0
made a small comment
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def get_sentiment_prediction(text, model, tokenizer):
|
|
| 42 |
prefix = "Analyze the sentiment of this statement extracted from a financial news article. Provide your answer as either negative, positive, or neutral.. Text: "
|
| 43 |
suffix = ".. Answer: "
|
| 44 |
full_prompt = f"{prefix}{text}{suffix}"
|
| 45 |
-
|
| 46 |
result = model.generate(prompt=full_prompt)
|
| 47 |
return result
|
| 48 |
except Exception as e:
|
|
|
|
| 42 |
prefix = "Analyze the sentiment of this statement extracted from a financial news article. Provide your answer as either negative, positive, or neutral.. Text: "
|
| 43 |
suffix = ".. Answer: "
|
| 44 |
full_prompt = f"{prefix}{text}{suffix}"
|
| 45 |
+
# Added a small comment here.
|
| 46 |
result = model.generate(prompt=full_prompt)
|
| 47 |
return result
|
| 48 |
except Exception as e:
|