Spaces:
Sleeping
Sleeping
Update app.py
Browse files12345620 unmodified lines27282930313220 unmodified lines535455565758import gradio as grimport jsondef analyze_text(text: str) -> str:"""Analyze text and return statistics.20 unmodified lines"average_sentence_length": avg_sentence_length}, indent=2)def extract_keywords(text: str, count: int = 5) -> str:"""Extract keywords (most common words) from text.20 unmodified lines"keywords": [{"word": w, "frequency": f} for w, f in top_words]}, indent=2)def check_reading_level(text: str) -> str:"""Estimate reading difficulty level.1234567820 unmodified lines2930313233343520 unmodified lines56575859606162import gradio as grimport jsonimport spaces@spaces.GPUdef analyze_text(text: str) -> str:"""Analyze text and return statistics.20 unmodified lines"average_sentence_length": avg_sentence_length}, indent=2)@spaces.GPUdef extract_keywords(text: str, count: int = 5) -> str:"""Extract keywords (most common words) from text.20 unmodified lines"keywords": [{"word": w, "frequency": f} for w, f in top_words]}, indent=2)@spaces.GPUdef check_reading_level(text: str) -> str:"""Estimate reading difficulty level.
app.py+4