poemsforaphrodite commited on
Commit
db301e1
·
verified ·
1 Parent(s): ca935ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -82,7 +82,7 @@ def process_file_with_assistant(file, file_type, category, reports_needed, user_
82
  # Create an assistant
83
  assistant = client.beta.assistants.create(
84
  name=f"{file_type} Analyzer",
85
- instructions=f"You are an expert in analyzing {file_type} files, focusing on {category}. Provide insights and summaries of the content based on the following reports: {', '.join(reports_needed)}. Consider the user's previous feedback: {user_feedback}",
86
  model="gpt-4o",
87
  tools=[{"type": "file_search"}]
88
  )
@@ -107,7 +107,7 @@ def process_file_with_assistant(file, file_type, category, reports_needed, user_
107
  run = client.beta.threads.runs.create(
108
  thread_id=thread.id,
109
  assistant_id=assistant.id,
110
- additional_instructions="Use the uploaded file to answer the question."
111
  )
112
  print(f"Run created. Run ID: {run.id}")
113
 
 
82
  # Create an assistant
83
  assistant = client.beta.assistants.create(
84
  name=f"{file_type} Analyzer",
85
+ instructions=f"You are an expert in analyzing {file_type} files, focusing on {category}. Provide insights and summaries of the content based on the following reports: {', '.join(reports_needed)}. Consider the user's previous feedback: {user_feedback}. Provide your response in plain text format without any formatting, bullet points, numbering, or source citations. Do not use asterisks, hashes, or any other special characters for emphasis or structure.",
86
  model="gpt-4o",
87
  tools=[{"type": "file_search"}]
88
  )
 
107
  run = client.beta.threads.runs.create(
108
  thread_id=thread.id,
109
  assistant_id=assistant.id,
110
+ additional_instructions="Use the uploaded file to answer the question. Provide your response in plain text format without any formatting, bullet points, numbering, or source citations. Do not use asterisks, hashes, or any other special characters for emphasis or structure."
111
  )
112
  print(f"Run created. Run ID: {run.id}")
113