VishalD1234 commited on
Commit
40661e0
·
verified ·
1 Parent(s): 30f5c94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -140,12 +140,11 @@ def predict(prompt, video_data, temperature, model, tokenizer):
140
 
141
  return response
142
 
143
- def get_analysis_prompt(step_number, possible_reasons):
144
  """Constructs the prompt for analyzing delay reasons based on the selected step."""
145
  return f"""You are an AI expert system specialized in analyzing manufacturing processes and identifying production delays in tire manufacturing. Your role is to accurately classify delay reasons based on visual evidence from production line footage.
146
  Task Context:
147
- You are analyzing video footage from Step {step_number} of a tire manufacturing process where a delay has been detected. Your task is to determine the most likely cause of the delay from the following possible reasons:
148
- {', '.join(possible_reasons)}
149
  Required Analysis:
150
  Carefully observe the video for visual cues indicating production interruption.
151
  If no person is visible in any of the frames, the reason probably might be due to his absence.
 
140
 
141
  return response
142
 
143
+ def get_analysis_prompt(step_number):
144
  """Constructs the prompt for analyzing delay reasons based on the selected step."""
145
  return f"""You are an AI expert system specialized in analyzing manufacturing processes and identifying production delays in tire manufacturing. Your role is to accurately classify delay reasons based on visual evidence from production line footage.
146
  Task Context:
147
+ You are analyzing video footage from Step {step_number} of a tire manufacturing process where a delay has been detected. }
 
148
  Required Analysis:
149
  Carefully observe the video for visual cues indicating production interruption.
150
  If no person is visible in any of the frames, the reason probably might be due to his absence.