Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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 |
-
|
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 ")
|