gradio/demo/latex/run.ipynb
Archit-Kohli 921716f618
Fixed visibility issue for all notebooks on GitHub (#5917)
* fixed visibility error in notebooks in github

* Delete fixNotebooks.py

deleted script used to fix notebooks

* Update generate_notebooks.py

fixed a small bug that prevented visibility of notebooks in GitHub
2023-10-15 18:16:57 -07:00

1.2 KiB

Gradio Demo: latex

In [ ]:
!pip install -q gradio 
In [ ]:
import gradio as gr

with gr.Blocks() as demo:
    gr.Markdown(
    r"""
    # Hello World! $\frac{\sqrt{x + y}}{4}$ is today's lesson

    ## the $\sqrt{x + y}$ is first

    Start with $\frac{\frac{x+1}{x+2}}{x+3}$ then we get $ 2+x $ and $3$.
    
    There are three formulas to know:
    
    the first is $\gamma^2 + \theta^2 = \omega^2$
    
    $\sqrt{x^2+1}$ is next
    
    Integral $\int_{a}^{b} x^2 \,dx$ is last

    Start typing below to see the output.

    I spent $5 at the grocery store. Then I bought a $2.50 ice cream cone.
    """)

if __name__ == "__main__":
    demo.launch()