Spaces:
Sleeping
Sleeping
atifsial123
commited on
Commit
•
570d8c2
1
Parent(s):
8212ea2
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def predict(pec_number):
|
|
64 |
|
65 |
name = get_name(pec_number, df)
|
66 |
pec_status = check_pec_number(pec_number, df)
|
67 |
-
return f"Your Name
|
68 |
except Exception as e:
|
69 |
print(f"An error occurred: {e}")
|
70 |
return f"Error: {e}"
|
@@ -72,14 +72,13 @@ def predict(pec_number):
|
|
72 |
# Build the Gradio interface without the file upload option
|
73 |
iface = gr.Interface(
|
74 |
fn=predict,
|
75 |
-
inputs=gr.Textbox(lines=1,
|
76 |
-
outputs="
|
77 |
title="PEC Number to Name Lookup",
|
78 |
-
description="Enter a PEC number
|
79 |
)
|
80 |
|
81 |
# Run the Gradio interface
|
82 |
if __name__ == "__main__":
|
83 |
iface.launch()
|
84 |
|
85 |
-
|
|
|
64 |
|
65 |
name = get_name(pec_number, df)
|
66 |
pec_status = check_pec_number(pec_number, df)
|
67 |
+
return f"Your Name Is: {name}\n{pec_status}" # Return name and PEC status
|
68 |
except Exception as e:
|
69 |
print(f"An error occurred: {e}")
|
70 |
return f"Error: {e}"
|
|
|
72 |
# Build the Gradio interface without the file upload option
|
73 |
iface = gr.Interface(
|
74 |
fn=predict,
|
75 |
+
inputs=gr.Textbox(lines=1, label="**PEC Number**"), # Bold label for PEC Number
|
76 |
+
outputs=gr.Textbox(label="Your Name Is:"), # Custom label for the output
|
77 |
title="PEC Number to Name Lookup",
|
78 |
+
description="Enter a PEC number , Your PEC number is attached with Firm or not"
|
79 |
)
|
80 |
|
81 |
# Run the Gradio interface
|
82 |
if __name__ == "__main__":
|
83 |
iface.launch()
|
84 |
|
|