anupam210 commited on
Commit
5adec92
1 Parent(s): d7d32ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -54,7 +54,7 @@ def avatiation(pdf_url):
54
  pdftext = ocr_pdf(pdf_url)
55
  defect_class = classify_class(pdftext)
56
  main_issue = classify_cause(pdftext)
57
- return defect_class, main_issue,main_issue
58
 
59
 
60
 
@@ -63,8 +63,8 @@ inputs2 = gr.inputs.Textbox(label="Link for aviation log reports 2")
63
 
64
 
65
  outputs = [gr.outputs.Textbox(label="Main Issue of the log report"),
66
- gr.outputs.Textbox(label="category of the log report"),
67
- gr.outputs.Textbox(label="log report similarity value")]
68
 
69
 
70
  demo = gr.Interface(fn=avatiation,inputs=[inputs1,inputs2],outputs=outputs, title="ATA Auto classification using OCR and GPT3 ")
 
54
  pdftext = ocr_pdf(pdf_url)
55
  defect_class = classify_class(pdftext)
56
  main_issue = classify_cause(pdftext)
57
+ return defect_class, main_issue
58
 
59
 
60
 
 
63
 
64
 
65
  outputs = [gr.outputs.Textbox(label="Main Issue of the log report"),
66
+ gr.outputs.Textbox(label="category of the log report")
67
+ ]
68
 
69
 
70
  demo = gr.Interface(fn=avatiation,inputs=[inputs1,inputs2],outputs=outputs, title="ATA Auto classification using OCR and GPT3 ")