Spaces:
Running on Zero
Running on Zero
Changed drop-down menu to radio buttons
Browse filesFiles changed (2)
304 unmodified lines3053063073083093103112 unmodified lines31431531631631731831931731831932032132232332432532632732832933033133233333433533633733861 unmodified lines400401402393394403404405406407408409410411412397413414399415416417418304 unmodified lines
# Example textsEXAMPLES = [ # TODO: Pull these texts out into separate files [handle_text("""The family of Azerbaijan President Ilham Aliyev leads a charmed, glamorous life, thanks in part to financial interests in almost every sector of the economy. His wife, Mehriban, comes from the privileged and powerful Pashayev family that owns banks, insurance and construction companies, a television station and a line of cosmetics. She has led the Heydar Aliyev Foundation, Azerbaijan's pre-eminent charity behind the construction of schools, 2 unmodified lines Arzu is also a significant shareholder in SW Holding, which controls nearly every operation related to Azerbaijan Airlines (“Azal”), from meals to airport taxis. Both sisters and brother Heydar own property in Dubai valued at roughly $75 million in 2010; Heydar is the legal owner of nine luxury mansions in Dubai purchased for some $44 million.""")],
[handle_text("""Legendary rock band Aerosmith has officially announced their retirement from touring after 54 years, citing lead singer Steven Tyler's unrecoverable vocal cord injury. The decision comes after months of unsuccessful treatment for Tyler's fractured larynx, which he suffered in September 2023.""")], [handle_text("""Les jardins du Luxembourg, situés au cœur du sixième arrondissement de Paris, offrent un véritable havre de paix aux citadins pressés. Créés au début du dix-septième siècle sur l'initiative de Marie de Médicis, ces jardins à la française s'étendent sur vingt-trois hectares et abritent le Palais du Luxembourg, siège du Sénat français. Les promeneurs peuvent y admirer les parterres de fleurs soigneusement entretenus, les bassins ornés de statues mythologiques, et les allées bordées de marronniers centenaires. Chaque matin, les jardiniers s'affairent à tailler les buis et à arroser les rosiers, perpétuant ainsi une tradition d'excellence horticole qui fait la fierté de la capitale française.""")],
[handle_text("""In a groundbreaking development, researchers at the Massachusetts Institute of Technology (MIT) have unveiled a new type of battery that promises to revolutionize energy storage. This lithium-sulfur battery boasts a significantly higher energy density compared to traditional lithium-ion batteries, potentially extending the range of electric vehicles and the lifespan of portable electronics. The team, led by Dr. Jane Smith, has been working on this technology for over five years, overcoming numerous challenges related to sulfur's conductivity and stability. The new battery design incorporates a novel cathode structure that enhances performance and durability. With successful prototype tests already completed, the researchers are now collaborating with industry partners to scale up production and bring this innovative solution to market within the next few years.""")],
[handle_text("""Los mercados callejeros son el corazón vibrante de muchas ciudades alrededor del mundo. Desde los coloridos puestos de frutas y verduras frescas hasta los aromas tentadores de la comida callejera, estos espacios no solo ofrecen productos locales, sino también una experiencia cultural única. En ellos, es común escuchar el regateo amable entre vendedores y clientes, mientras los sonidos de la música tradicional se mezclan con el bullicio de la multitud. Además, son lugares ideales para descubrir artesanías hechas a mano, como tejidos, cerámicas o joyería, que reflejan la creatividad y las tradiciones de la región. Visitar un mercado callejero es sumergirse en la esencia misma de una comunidad, donde cada rincón cuenta una historia y cada sabor evoca recuerdos.""")],]
def generate_first_example():61 unmodified lines with gr.Row(): # Left panel - Input controls with gr.Column(scale=1): input_model = gr.Dropdown( MODEL_LIST, # input_model = gr.Dropdown( # MODEL_LIST, # label="🤖 Select Model", # info="Choose a model to process your text", # value=MODEL_LIST[0] if MODEL_LIST else None, # ) input_model = gr.Radio( MODEL_LIST, label="🤖 Select Model", info="Choose a model to process your text", value=MODEL_LIST[0] if MODEL_LIST else None value=MODEL_LIST[1] if MODEL_LIST else None, )
input_text = gr.TextArea( label="📝 Input Text", info="Enter text in any language to extract a knowledge graph",14 unmodified lines1516171819202122232425262728293031323334353614 unmodified lines "processing_start_time": 1756738390, "processing_end_time": 1756738484 } }, "doc-e5293d4d2bbfd7c4251e9718c5c5a1c1": { "status": "processed", "chunks_count": 1, "chunks_list": [ "chunk-e5293d4d2bbfd7c4251e9718c5c5a1c1" ], "content_summary": "Los mercados callejeros son el corazón vibrante de muchas ciudades alrededor del mundo. Desde los coloridos puestos de frutas y verduras frescas hasta los aromas tentadores de la comida callejera, estos espacios no solo ofrecen productos locales, sin...", "content_length": 768, "created_at": "2025-09-04T09:22:22.653816+00:00", "updated_at": "2025-09-04T09:23:29.962000+00:00", "file_path": "unknown_source", "track_id": "insert_20250904_172222_40ea51ac", "metadata": { "processing_start_time": 1756977742, "processing_end_time": 1756977809 } }}app.py+24-8
sample/kv_store_doc_status.json+17