ishworrsubedii commited on
Commit
76115d7
·
1 Parent(s): 2d08044

update: minor fixes

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -9,6 +9,8 @@ import zipfile
9
  import io
10
 
11
  client = Groq(api_key=os.getenv("GROQ_API_KEY"))
 
 
12
 
13
  st.title("Code Analysis with LLMs")
14
 
@@ -39,9 +41,6 @@ if code_dict:
39
  unique_key = st.sidebar.selectbox("Select a Key for Analysis", list(code_dict.keys()))
40
 
41
  if st.sidebar.button("Analyze Code") and unique_key:
42
- llm_obj = LLMClient(client)
43
- processor = CodeProcessor(llm_obj)
44
-
45
  code_text = code_dict[unique_key]
46
  markdown_output = processor.process_code(code_text, model_choice)
47
 
 
9
  import io
10
 
11
  client = Groq(api_key=os.getenv("GROQ_API_KEY"))
12
+ llm_obj = LLMClient(client)
13
+ processor = CodeProcessor(llm_obj)
14
 
15
  st.title("Code Analysis with LLMs")
16
 
 
41
  unique_key = st.sidebar.selectbox("Select a Key for Analysis", list(code_dict.keys()))
42
 
43
  if st.sidebar.button("Analyze Code") and unique_key:
 
 
 
44
  code_text = code_dict[unique_key]
45
  markdown_output = processor.process_code(code_text, model_choice)
46