SelmaNajih001 commited on
Commit
a4e6890
·
verified ·
1 Parent(s): 41f1e0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -19
app.py CHANGED
@@ -18,7 +18,7 @@ pipe = pipeline(
18
  model=model_name,
19
  tokenizer=model_name,
20
  max_new_tokens=600,
21
- temperature=0.0,
22
  do_sample=False,
23
  num_beams=6,
24
  repetition_penalty=1.5,
@@ -35,49 +35,37 @@ Your goal is to identify similar historical situations and use them to infer wha
35
  Your analysis must be comprehensive, covering macroeconomic, sectoral, and corporate-specific factors.
36
 
37
  When analyzing the Context, consider:
38
-
39
  Macroeconomic indicators: interest rate trends, inflation, GDP growth, employment data, central bank policy, commodity prices, and currency movements.
40
-
41
  Geopolitical factors: wars, sanctions, trade tensions, energy crises, and political instability.
42
-
43
  Sector performance: sector rotations, capital inflows/outflows, relative strength of industries.
44
-
45
  Corporate-level factors:
46
-
47
  Cross-shareholdings, mergers & acquisitions, and strategic investments between companies.
48
-
49
  Earnings reports, profit warnings, and guidance revisions.
50
-
51
  Dividend policies, share buybacks, and debt restructuring.
52
-
53
  Insider trading, institutional buying/selling, and large fund movements.
54
-
55
  Technological innovation, regulation changes, and supply chain disruptions.
56
 
57
-
58
- Historical Approach
59
-
60
  Identify past periods that closely resemble the current environment (e.g., "high inflation + geopolitical conflict" or "rate hikes + tech earnings slump").
61
-
62
  Base your reasoning on actual market reactions from those periods — specify which companies or sectors moved and how.
63
 
64
  If multiple scenarios are possible, explain each one and why the market may react differently under varying conditions.
65
 
66
  Explicitly name the historical reference period(s) used (e.g., "2008 financial crisis," "2020 pandemic crash and recovery," etc.).
67
 
68
- Response Format
69
 
70
- Chosen Stock or List of Stocks:
71
  (name/names)
72
 
73
- Prediction(s):
74
  (expected price change or direction)
75
 
76
- Explanation:
77
  A concise, factual analysis linking the historical precedent to the current conditions.
78
  Mention the relevant macroeconomic, sector, and corporate factors, explaining how they interacted in the past and why similar outcomes may occur again. "
79
 
80
- Context:
81
  {context}
82
 
83
  Question:
 
18
  model=model_name,
19
  tokenizer=model_name,
20
  max_new_tokens=600,
21
+ temperature=0.6,
22
  do_sample=False,
23
  num_beams=6,
24
  repetition_penalty=1.5,
 
35
  Your analysis must be comprehensive, covering macroeconomic, sectoral, and corporate-specific factors.
36
 
37
  When analyzing the Context, consider:
 
38
  Macroeconomic indicators: interest rate trends, inflation, GDP growth, employment data, central bank policy, commodity prices, and currency movements.
 
39
  Geopolitical factors: wars, sanctions, trade tensions, energy crises, and political instability.
 
40
  Sector performance: sector rotations, capital inflows/outflows, relative strength of industries.
 
41
  Corporate-level factors:
 
42
  Cross-shareholdings, mergers & acquisitions, and strategic investments between companies.
 
43
  Earnings reports, profit warnings, and guidance revisions.
 
44
  Dividend policies, share buybacks, and debt restructuring.
 
45
  Insider trading, institutional buying/selling, and large fund movements.
 
46
  Technological innovation, regulation changes, and supply chain disruptions.
47
 
48
+ Historical Approach:
 
 
49
  Identify past periods that closely resemble the current environment (e.g., "high inflation + geopolitical conflict" or "rate hikes + tech earnings slump").
 
50
  Base your reasoning on actual market reactions from those periods — specify which companies or sectors moved and how.
51
 
52
  If multiple scenarios are possible, explain each one and why the market may react differently under varying conditions.
53
 
54
  Explicitly name the historical reference period(s) used (e.g., "2008 financial crisis," "2020 pandemic crash and recovery," etc.).
55
 
56
+ Response Format:
57
 
58
+ -Chosen Stock or List of Stocks:
59
  (name/names)
60
 
61
+ -Prediction(s):
62
  (expected price change or direction)
63
 
64
+ -Explanation:
65
  A concise, factual analysis linking the historical precedent to the current conditions.
66
  Mention the relevant macroeconomic, sector, and corporate factors, explaining how they interacted in the past and why similar outcomes may occur again. "
67
 
68
+ Here the Context:
69
  {context}
70
 
71
  Question: