Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files12 unmodified lines131415161718192021222324174 unmodified lines19920020120220320420512 unmodified lines# ConstantsTITLE = "🌐 Phi-3 Instruct Graph Explorer"SUBTITLE = "✨ Extract and visualize knowledge graphs from any text in multiple languages"THEME = gr.themes.Base().set(primary_hue="indigo",secondary_hue="purple",neutral_hue="slate",radius_size=gr.themes.sizes.radius_sm)# Color utilitiesdef get_random_light_color():174 unmodified lines]def create_ui():with gr.Blocks(theme=THEME, title=TITLE) as demo:# Headergr.Markdown(f"# {TITLE}")gr.Markdown(f"{SUBTITLE}")12 unmodified lines1314151617181920212223242526272829303132174 unmodified lines20720820921021121221312 unmodified lines# ConstantsTITLE = "🌐 Phi-3 Instruct Graph Explorer"SUBTITLE = "✨ Extract and visualize knowledge graphs from any text in multiple languages"# Custom CSS for stylingCUSTOM_CSS = """.gradio-container {font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;}.gr-button-primary {background-color: #6366f1 !important;}.gr-button-secondary {border-color: #6366f1 !important;color: #6366f1 !important;}"""# Color utilitiesdef get_random_light_color():174 unmodified lines]def create_ui():with gr.Blocks(css=CUSTOM_CSS, title=TITLE) as demo:# Headergr.Markdown(f"# {TITLE}")gr.Markdown(f"{SUBTITLE}")
app.py+15-7