jojortz's picture
add nltk for Unstructured
f0279d9
raw
history blame contribute delete
460 Bytes
import gradio as gr
from tabs.arena_sxs import arena_sxs
from tabs.leaderboard import leaderboard
import os
import nltk
nltk.download('averaged_perceptron_tagger')
os.system("apt-get update && apt-get install -y poppler-utils tesseract-ocr")
# Create the Gradio interface with tabs
with gr.Blocks() as demo:
with gr.Tab("Parser Arena"):
arena_sxs()
with gr.Tab("Leaderboard"):
leaderboard()
# Launch the app
demo.launch(share=True)