-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcurl.txt
More file actions
113 lines (55 loc) · 2.82 KB
/
curl.txt
File metadata and controls
113 lines (55 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
curl -X POST http://localhost:3000/api/llmStockInfo \
-H "Content-Type: application/json" \
-d '{
"query": "for Tata consultency services What is the future outlook of this stock tell me indepth stock analysis?",
"symbol": "TCS",
"market": "INDIA"
}'
curl -X POST http://localhost:3000/api/mlService \
-H "Content-Type: application/json" \
-d '{
"stockSymbol": "TCS",
"market": "INDIA",
"email": "test@example.com",
"startDate": "2020-01-01",
"endDate": "2025-05-14"
}'
ML SERVICE APPLICATION
curl -X POST "http://127.0.0.1:8000/train-predict/" \
-H "accept: application/json" \
-H "Content-Type: multipart/form-data" \
-F "csv_file=@/Users/meet/Desktop/stox-sight/csvGenerated/test_example.com/TCS_INDIA_YY2025MM05DD14_HH14MM23SS26.csv" \
-F "user_email_to_send_to=hackathon2mj@gmail.com"
curl -X POST "http://127.0.0.1:8000/train-predict/" \
-H "accept: application/json" \
-H "Content-Type: multipart/form-data" \
-F "csv_file=@/Users/meet/Desktop/stox-sight/csvGenerated/test_example.com/ITC_INDIA_20250514_141615.csv" \
-F "user_email_to_send_to=hackathon2mj@gmail.com"
HUgging face application
Your ML endpoint (@app.post("/train-predict/")): https://mj665-stox-sight-ml-service.hf.space/train-predict/
Generated Plots (if served from /static/plots): https://mj665-stox-sight-ml-service.hf.space/static/plots/your_run_id_plot_name.png
Generated PDFs (if served from /reports): https://mj665-stox-sight-ml-service.hf.space/reports/your_run_id_report.pdf
curl -X POST "https://mj665-stox-sight-ml-service.hf.space/train-predict/" \
-H "accept: application/json" \
-H "Content-Type: multipart/form-data" \
-F "csv_file=@/Users/meet/Desktop/stox-sight/csvGenerated/test_example.com/TCS_INDIA_YY2025MM05DD14_HH14MM23SS26.csv" \
-F "user_email_to_send_to=hackathon2mj@gmail.com"
curl -X POST "http://127.0.0.1:8000/train-predict/" \
-H "accept: application/json" \
-H "Content-Type: multipart/form-data" \
-F "csv_file=@/Users/meet/Desktop/stox-sight/csvGenerated/test_example.com/ITC_INDIA_20250514_141615.csv" \
-F "user_email_to_send_to=email@email.com"
npx shadcn@latest add button
npx shadcn@latest add input
npx shadcn@latest add card
npx shadcn@latest add separator
npx shadcn@latest add label # For form labels
npx shadcn@latest add textarea # For the query input
npx shadcn@latest add dropdown-menu # For market selection
npx shadcn@latest add alert # For displaying errors
npx shadcn@latest add dialog # Potentially for showing JSON in a modal
npx shadcn@latest add sheet # Potentially for a mobile nav
"@/components/ui/select"; // Assuming you installed this via shadcn/ui add select
import { Separator } from '@/components/ui/separator';
npx shadcn@latest add select
npx shadcn@latest add separator