Spaces:
Running
Running
UniquePratham
commited on
Commit
•
9f3b39e
1
Parent(s):
26ba106
Update app.py
Browse files
app.py
CHANGED
@@ -174,7 +174,7 @@ if uploaded_file:
|
|
174 |
|
175 |
# Clean and polish extracted text
|
176 |
cleaned_text = clean_extracted_text(extracted_text)
|
177 |
-
|
178 |
|
179 |
# Save results to JSON file
|
180 |
result_data = {"extracted_text":extracted_text,"cleaner_text":cleaned_text,"polished_text": polished_text}
|
|
|
174 |
|
175 |
# Clean and polish extracted text
|
176 |
cleaned_text = clean_extracted_text(extracted_text)
|
177 |
+
polished_text = polish_text_with_ai(cleaned_text) if model_choice in ["GOT_CPU", "GOT_GPU"] else cleaned_text
|
178 |
|
179 |
# Save results to JSON file
|
180 |
result_data = {"extracted_text":extracted_text,"cleaner_text":cleaned_text,"polished_text": polished_text}
|