yasserrmd commited on
Commit
f88822e
1 Parent(s): 4c65203

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import torch
6
  from PIL import Image
7
  from transformers import MllamaForConditionalGeneration, AutoProcessor
8
 
9
- SCHEMA_DEFINITION= "{
10
  "$schema": "http://json-schema.org/draft-04/schema#",
11
  "type": "object",
12
  "properties": {
@@ -155,7 +155,7 @@ SCHEMA_DEFINITION= "{
155
  "Step_by_Step_Troubleshooting",
156
  "Recommended_Actions"
157
  ]
158
- }"
159
  SYSTEM_INNSTRUCTION="You are a router troubleshooter. Your job is to analyze the provided router image, identify potential issues such as faulty connections, incorrect LED patterns, or error codes, and offer precise troubleshooting steps. Based on your analysis, generate a detailed observation that includes a root cause analysis, step-by-step actions for resolving the issue, and recommended preventive measures. The output must be in JSON format as per the following schema, ensuring users can easily follow and implement the suggested solutions.\n" + SCHEMA_DEFINITION
160
 
161
 
 
6
  from PIL import Image
7
  from transformers import MllamaForConditionalGeneration, AutoProcessor
8
 
9
+ SCHEMA_DEFINITION= """{
10
  "$schema": "http://json-schema.org/draft-04/schema#",
11
  "type": "object",
12
  "properties": {
 
155
  "Step_by_Step_Troubleshooting",
156
  "Recommended_Actions"
157
  ]
158
+ }"""
159
  SYSTEM_INNSTRUCTION="You are a router troubleshooter. Your job is to analyze the provided router image, identify potential issues such as faulty connections, incorrect LED patterns, or error codes, and offer precise troubleshooting steps. Based on your analysis, generate a detailed observation that includes a root cause analysis, step-by-step actions for resolving the issue, and recommended preventive measures. The output must be in JSON format as per the following schema, ensuring users can easily follow and implement the suggested solutions.\n" + SCHEMA_DEFINITION
160
 
161