robertselvam commited on
Commit
6808403
·
verified ·
1 Parent(s): f6f9a0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from langchain.llms import OpenAI as OpenAILLM
7
  from langchain.text_splitter import CharacterTextSplitter
8
  from langchain.vectorstores import FAISS
9
  import gradio as gr
10
- from openai import OpenAI
11
  import matplotlib.pyplot as plt
12
  import pandas as pd
13
  import logging
@@ -16,6 +16,7 @@ import re
16
  import plotly.graph_objects as go
17
  import csv
18
 
 
19
  # Configure logging
20
  logging.basicConfig(
21
  filename='Resume_Analyzer.log', # You can adjust the log file name here
@@ -48,7 +49,7 @@ class JobPotral:
48
 
49
  Sets the OpenAI API key in the environment.
50
  """
51
- self.client = OpenAI()
52
 
53
  self.answer = ""
54
 
 
7
  from langchain.text_splitter import CharacterTextSplitter
8
  from langchain.vectorstores import FAISS
9
  import gradio as gr
10
+ from openai import AzureOpenAI
11
  import matplotlib.pyplot as plt
12
  import pandas as pd
13
  import logging
 
16
  import plotly.graph_objects as go
17
  import csv
18
 
19
+
20
  # Configure logging
21
  logging.basicConfig(
22
  filename='Resume_Analyzer.log', # You can adjust the log file name here
 
49
 
50
  Sets the OpenAI API key in the environment.
51
  """
52
+ self.client = AzureOpenAI()
53
 
54
  self.answer = ""
55