Spaces:
Sleeping
Sleeping
File size: 623 Bytes
2c542cb ec83357 a511cad ec83357 c39e07e eab8d68 2c7b20a eab8d68 2c7b20a eab8d68 36fd41c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import gradio as gr
from bs4 import BeautifulSoup
from bs4.element import Comment
import bibtexparser
from dateutil import parser
import json
import requests
import tldextract
from collections import defaultdict
import re
import mwparserfromhell
from transformers import pipeline
from source_eval_model import check_source_quality
from talk_page_analysis import tone_talkpage
def combined_function(wiki_url):
tones = tone_talkpage(wiki_url)
flags = check_source_quality(wiki_url)
return str(tones) + "\n" + str(flags)
iface = gr.Interface(fn=combined_function, inputs="text", outputs="text")
iface.launch() |