saicharantej commited on
Commit
85e1d21
·
verified ·
1 Parent(s): 2a23e72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import os
2
  import openai
3
  os.environ["OPENAI_API_KEY"] = os.getenv('openai')
4
- openai.api_key = "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"
5
 
6
  def get_completion(prompt, model="gpt-3.5-turbo"):
7
  messages = [{"role": "user", "content": prompt}]
@@ -23,8 +23,6 @@ def evaluate_answer(question,answer,context):
23
  return response
24
 
25
 
26
-
27
- gemini_model = ChatGoogleGenerativeAI(model = "gemini-pro")
28
  def generate_multiple_questions(topic):
29
  prompt_sum = f'''Given the {topic}, generate atleast 10 multiple choice questions that test the users understanding of the topic. Here is the format:
30
 
 
1
  import os
2
  import openai
3
  os.environ["OPENAI_API_KEY"] = os.getenv('openai')
4
+
5
 
6
  def get_completion(prompt, model="gpt-3.5-turbo"):
7
  messages = [{"role": "user", "content": prompt}]
 
23
  return response
24
 
25
 
 
 
26
  def generate_multiple_questions(topic):
27
  prompt_sum = f'''Given the {topic}, generate atleast 10 multiple choice questions that test the users understanding of the topic. Here is the format:
28