Hemanth Sai commited on
Commit
266314b
ยท
2 Parent(s): 88ba418 8282243

Merge pull request #4 from HemanthSai7/main

Browse files
Files changed (2) hide show
  1. backend/__init__.py +0 -9
  2. frontend/๐Ÿก Home.py +19 -15
backend/__init__.py CHANGED
@@ -11,14 +11,11 @@ from langchain.llms import Clarifai
11
  from langchain.chains import LLMChain
12
  from langchain.prompts import PromptTemplate
13
 
14
- import sys
15
-
16
  app = FastAPI(title="Techdocs",
17
  version="V0.0.1",
18
  description="API for automatic code documentation generation!"
19
  )
20
 
21
- print(sys.getsizeof(app))
22
  from backend import router
23
 
24
  try:
@@ -39,18 +36,12 @@ try:
39
  model_version_id=config.MODEL_VERSION_ID,
40
  )
41
 
42
- print(sys.getsizeof(llm))
43
-
44
  llmchain = LLMChain(
45
  prompt=prompt,
46
  llm=llm
47
  )
48
-
49
- print(sys.getsizeof(llmchain))
50
-
51
  app.state.llmchain = llmchain
52
 
53
- print(sys.getsizeof(app))
54
 
55
  except mysql.connector.Error as err:
56
  raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(err))
 
11
  from langchain.chains import LLMChain
12
  from langchain.prompts import PromptTemplate
13
 
 
 
14
  app = FastAPI(title="Techdocs",
15
  version="V0.0.1",
16
  description="API for automatic code documentation generation!"
17
  )
18
 
 
19
  from backend import router
20
 
21
  try:
 
36
  model_version_id=config.MODEL_VERSION_ID,
37
  )
38
 
 
 
39
  llmchain = LLMChain(
40
  prompt=prompt,
41
  llm=llm
42
  )
 
 
 
43
  app.state.llmchain = llmchain
44
 
 
45
 
46
  except mysql.connector.Error as err:
47
  raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(err))
frontend/๐Ÿก Home.py CHANGED
@@ -19,7 +19,7 @@ def get_base64_bin_file(bin_file):
19
  data = f.read()
20
  return base64.b64encode(data).decode()
21
 
22
- st.markdown("# DocGup-tea: AI based Documentation Generator ๐Ÿ“ƒ")
23
 
24
  def logout():
25
  del st.session_state["access_token"]
@@ -53,29 +53,33 @@ def home_page():
53
  '''
54
  st.markdown(page_bg_img, unsafe_allow_html=True)
55
 
56
- set_page_background("../assets/bg.jpg")
57
 
58
  st.markdown(
59
  """
60
 
61
- ## A step-by-step guide
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
 
63
- The process is quite straightforward. BOB offers loans to eligible applicants with strong financial profiles.
64
- Individuals need to provide their basic personal, employment, income and property details to know if you are fit to apply for a loan.
65
 
66
- ### 1 . Login
67
 
68
- Step one is the login part, you just have to work your way through the following simple steps.
69
- - Enter your mobile number
70
- - Enter the OTP recieved
71
- - accept consent in the Safe portal
72
 
73
- ### 2. Loan page
74
 
75
- Once you login, you will be redirected to the loan page.
76
- - Offer all relevant details such as loan amount, loan history, income, etc.
77
- - Click on the submit option once you have filled in all the details.
78
- - Our algorithm will assess your eligibility based on the details provided by you and you will be awarded with a `yes` or a `no`.
79
  """
80
  )
81
 
 
19
  data = f.read()
20
  return base64.b64encode(data).decode()
21
 
22
+ st.markdown("# Welcome to Techdocs: Where Code Meets Clarity! ๐Ÿš€")
23
 
24
  def logout():
25
  del st.session_state["access_token"]
 
53
  '''
54
  st.markdown(page_bg_img, unsafe_allow_html=True)
55
 
56
+ # set_page_background("../assets/bg.jpg")
57
 
58
  st.markdown(
59
  """
60
 
61
+ ##### Unleash the documentation dynamo that is **Techdocs**! Say goodbye to the documentation drudgery that haunts coders' dreams and embrace the effortless power of AI-driven documentation. With **Techdocs**, harness the genius of OpenAI's GPT-3, the magic of WizardCoderLM, the versatility of Huggingface Transformers, and the precision of Langchain and Clarifai.
62
+
63
+ ## How Does Techdocs Work Its Magic? ๐Ÿ”ฎ
64
+
65
+ ##### Just feed your code into **Techdocs**, and like a seasoned wizard, it'll conjure up beautifully detailed documentation in an instant. Your code will transform into a masterpiece of clarity, complete with insightful comments, vivid descriptions, crystal-clear parameters, return values, and real-world examples.
66
+
67
+ ## What Can Techdocs Do for You? ๐ŸŒŸ
68
+
69
+ - ##### Boost your code quality effortlessly.
70
+ - ##### Share your brilliance with the world in a snap.
71
+ - ##### Effortlessly generate documentation for your code.
72
+ - ##### Include comments, descriptions, parameters, return values, and real-life examples.
73
+ - ##### Elevate your code's readability, maintainability, and quality.
74
+
75
+ ##### **Techdocs** is your code's trusty companion, helping you document with ease so you can focus on what you do best: coding!. **Techdocs** is your secret weapon for leveling up your code game. Whether you're a seasoned developer or just starting your coding journey, Techdocs has got your back. Get ready to unlock the future of code documentation today! ๐ŸŒŸ
76
+
77
+
78
 
 
 
79
 
 
80
 
 
 
 
 
81
 
 
82
 
 
 
 
 
83
  """
84
  )
85