Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,6 @@ def load_finetuned_classifier_model(question):
|
|
51 |
pipe = pipeline("text-classification", model="tonyhui2234/CustomModel_classifier_model_10")
|
52 |
prediction = pipe(question)[0]['label']
|
53 |
predicted_label = mapping.get(prediction, prediction)
|
54 |
-
print(predicted_label)
|
55 |
return predicted_label
|
56 |
|
57 |
# Function to generate a detailed answer by combining the user's question and the fortune detail
|
@@ -147,7 +146,6 @@ def submit_text_callback():
|
|
147 |
"Detail": "No detail available.",
|
148 |
"HeaderLink": None
|
149 |
}
|
150 |
-
print(row_detail)
|
151 |
|
152 |
# Function to load and resize a local image file
|
153 |
def load_and_resize_image(path, max_size=MAX_SIZE):
|
|
|
51 |
pipe = pipeline("text-classification", model="tonyhui2234/CustomModel_classifier_model_10")
|
52 |
prediction = pipe(question)[0]['label']
|
53 |
predicted_label = mapping.get(prediction, prediction)
|
|
|
54 |
return predicted_label
|
55 |
|
56 |
# Function to generate a detailed answer by combining the user's question and the fortune detail
|
|
|
146 |
"Detail": "No detail available.",
|
147 |
"HeaderLink": None
|
148 |
}
|
|
|
149 |
|
150 |
# Function to load and resize a local image file
|
151 |
def load_and_resize_image(path, max_size=MAX_SIZE):
|