Spaces:
Runtime error
Runtime error
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) |