Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import languagecodes
|
|
|
|
| 3 |
import httpx, os
|
| 4 |
import polars as pl
|
| 5 |
|
|
@@ -70,7 +71,7 @@ def detect_language(input_text: str, used_libraries: list[str]) -> tuple[str, st
|
|
| 70 |
if 'fasttextlangdetect' in used_libraries:
|
| 71 |
detections.append(['fasttextlangdetect'] + detectinstance.fasttextlangdetect())
|
| 72 |
if 'fastlangdetect' in used_libraries:
|
| 73 |
-
detections.append([
|
| 74 |
print(detections)
|
| 75 |
return detections
|
| 76 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import languagecodes
|
| 3 |
+
import inspect
|
| 4 |
import httpx, os
|
| 5 |
import polars as pl
|
| 6 |
|
|
|
|
| 71 |
if 'fasttextlangdetect' in used_libraries:
|
| 72 |
detections.append(['fasttextlangdetect'] + detectinstance.fasttextlangdetect())
|
| 73 |
if 'fastlangdetect' in used_libraries:
|
| 74 |
+
detections.append([detectinstance.fastlangdetect().__qualname__] + detectinstance.fastlangdetect())
|
| 75 |
print(detections)
|
| 76 |
return detections
|
| 77 |
|