prathameshdalal commited on
Commit
44296b9
1 Parent(s): e1d5008

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +67 -1
README.md CHANGED
@@ -9,5 +9,71 @@ app_file: app.py
9
  pinned: false
10
  license: mit
11
  ---
 
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  pinned: false
10
  license: mit
11
  ---
12
+ Get10KInsights is a web-based interface to get insights about a company from its 10K filing reports, the retrival is done with Kay.ai API and Athropic Claude 3 API through Langchain.
13
 
14
+ ## Tech Stack
15
+ 1. Built using `Gradio`.
16
+ 2. Deployed on [`HuggingFace Spaces`](https://huggingface.co/spaces/prathameshdalal/Get10KInsights)
17
+
18
+ ## Context Retrivers
19
+ 1. Kay AI
20
+ 2. Anthropic Claude 3
21
+
22
+
23
+ # Useage
24
+
25
+ ## Method 1: HuggingFace Spaces Interface
26
+
27
+ The App is hosted on [`HuggingFace Spaces`](https://huggingface.co/spaces/prathameshdalal/Get10KInsights).
28
+
29
+ 1. To get insights about a particular company. <br>
30
+ *Enter Company Name or Ticker* in the Input Text-Box
31
+
32
+ 2. Few Examples are stored in the example section of the [page](https://huggingface.co/spaces/prathameshdalal/Get10KInsights). <br>
33
+ *Click on the Ticker to view the example insights*
34
+
35
+ <hr>
36
+
37
+ ## Method 2: API Endpoints
38
+
39
+ In Order to get the insights using API endpoints, there is some setup which needs to be done. <br>
40
+ <br>
41
+ Install the gradio client.
42
+
43
+ ```bash
44
+ $ pip install gradio_client
45
+ ```
46
+
47
+ ### api_name: /predict
48
+
49
+ ```python
50
+ from gradio_client import Client
51
+
52
+ client = Client("prathameshdalal/Get10KInsights")
53
+ result = client.predict(
54
+ company_name="APPL",
55
+ api_name="/predict"
56
+ )
57
+ print(result)
58
+ ```
59
+ ### Accepts 1 parameter:
60
+
61
+ #### ``company_name`` *str* **Required**
62
+
63
+ The input value that is provided in the "Company Name or Ticker" Textbox component.
64
+
65
+ ### Returns 3 elements
66
+
67
+ [0] str **"Company's financial performance over the past years"** <br>
68
+
69
+ [1] str **"Company's earnings per share (EPS), return on equity (ROE), and debt-to-equity ratio For past few years"** <br>
70
+
71
+ [2] str **"Main risks identified in 10-K filing"** <br>
72
+
73
+ <hr>
74
+
75
+ ### Response Time
76
+ Average Response time to retrive the insights is around 40s.
77
+
78
+ ### Useage & Rate-Limit
79
+ Currently the Anthropic Claude 3 is hosted on a Free Tier with $5 Credit with a rate-limit of 5 Requests/per minute.