afouda commited on
Commit
c6f374c
·
verified ·
1 Parent(s): 27eee41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -8,7 +8,7 @@ from RAG import rag_autism
8
  from openai import OpenAI # Corrected import
9
  from dotenv import load_dotenv
10
  import Old_Document
11
- import datetime
12
  import User_Specific_Documents
13
  from prompt_template import (
14
  Prompt_template_translation,
@@ -38,10 +38,7 @@ openai = OpenAI(
38
  api_key=DEEPINFRA_API_KEY,
39
  base_url="https://api.deepinfra.com/v1/openai",
40
  )
41
-
42
- datetime.now()
43
  timestamp = datetime.now().strftime("%Y%m%d_%H%M%S_%f")
44
-
45
  # Rest of your code remains unchanged
46
  # Helper to call chat completion synchronously
47
  def call_llm(model: str, messages: list[dict], temperature: float = 0.0, **kwargs) -> str:
 
8
  from openai import OpenAI # Corrected import
9
  from dotenv import load_dotenv
10
  import Old_Document
11
+ from datetime import datetime
12
  import User_Specific_Documents
13
  from prompt_template import (
14
  Prompt_template_translation,
 
38
  api_key=DEEPINFRA_API_KEY,
39
  base_url="https://api.deepinfra.com/v1/openai",
40
  )
 
 
41
  timestamp = datetime.now().strftime("%Y%m%d_%H%M%S_%f")
 
42
  # Rest of your code remains unchanged
43
  # Helper to call chat completion synchronously
44
  def call_llm(model: str, messages: list[dict], temperature: float = 0.0, **kwargs) -> str: