Commit
•
3dbaaa3
1
Parent(s):
da3a774
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,17 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
2 |
|
3 |
def process_input(title, description):
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
def main():
|
8 |
# Define the interface
|
|
|
1 |
import gradio as gr
|
2 |
+
from fake_job_detector.models import DistilBERTBaseModel
|
3 |
+
|
4 |
|
5 |
def process_input(title, description):
|
6 |
+
# Load the safetensors
|
7 |
+
safetensors_path = "base_unfrozen_5epoch"
|
8 |
+
|
9 |
+
# Load the DistilBERT model
|
10 |
+
model = DistilBERTBaseModel(safetensors_path)
|
11 |
+
|
12 |
+
result = model(title, description)
|
13 |
+
|
14 |
+
return result
|
15 |
|
16 |
def main():
|
17 |
# Define the interface
|