aliabd HF staff commited on
Commit
ae894cd
·
1 Parent(s): 466ac81

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. requirements.txt +1 -1
  2. run.ipynb +1 -1
  3. run.py +1 -3
requirements.txt CHANGED
@@ -1,3 +1,3 @@
1
  matplotlib
2
  numpy
3
- https://gradio-main-build.s3.amazonaws.com/2883a12c1fe643ff0b6c9077786548529f7a9abb/gradio-3.36.0-py3-none-any.whl
 
1
  matplotlib
2
  numpy
3
+ https://gradio-main-build.s3.amazonaws.com/b4173886bab24d47bef9936a96801ce6ac6aba0e/gradio-3.36.0-py3-none-any.whl
run.ipynb CHANGED
@@ -1 +1 @@
1
- {"cells": [{"cell_type": "markdown", "id": 302934307671667531413257853548643485645, "metadata": {}, "source": ["# Gradio Demo: plot_component"]}, {"cell_type": "code", "execution_count": null, "id": 272996653310673477252411125948039410165, "metadata": {}, "outputs": [], "source": ["!pip install -q gradio matplotlib numpy"]}, {"cell_type": "code", "execution_count": null, "id": 288918539441861185822528903084949547379, "metadata": {}, "outputs": [], "source": ["import gradio as gr \n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "\n", "Fs = 8000\n", "f = 5\n", "sample = 8000\n", "x = np.arange(sample)\n", "y = np.sin(2 * np.pi * f * x / Fs)\n", "plt.plot(x, y)\n", "\n", "css = \"footer {display: none !important;} .gradio-container {min-height: 0px !important;}\"\n", "\n", "with gr.Blocks(css=css) as demo:\n", " gr.Plot(value=plt)\n", "\n", "demo.launch()"]}], "metadata": {}, "nbformat": 4, "nbformat_minor": 5}
 
1
+ {"cells": [{"cell_type": "markdown", "id": 302934307671667531413257853548643485645, "metadata": {}, "source": ["# Gradio Demo: plot_component"]}, {"cell_type": "code", "execution_count": null, "id": 272996653310673477252411125948039410165, "metadata": {}, "outputs": [], "source": ["!pip install -q gradio matplotlib numpy"]}, {"cell_type": "code", "execution_count": null, "id": 288918539441861185822528903084949547379, "metadata": {}, "outputs": [], "source": ["import gradio as gr \n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "\n", "Fs = 8000\n", "f = 5\n", "sample = 8000\n", "x = np.arange(sample)\n", "y = np.sin(2 * np.pi * f * x / Fs)\n", "plt.plot(x, y)\n", "\n", "with gr.Blocks() as demo:\n", " gr.Plot(value=plt)\n", "\n", "demo.launch()"]}], "metadata": {}, "nbformat": 4, "nbformat_minor": 5}
run.py CHANGED
@@ -9,9 +9,7 @@ x = np.arange(sample)
9
  y = np.sin(2 * np.pi * f * x / Fs)
10
  plt.plot(x, y)
11
 
12
- css = "footer {display: none !important;} .gradio-container {min-height: 0px !important;}"
13
-
14
- with gr.Blocks(css=css) as demo:
15
  gr.Plot(value=plt)
16
 
17
  demo.launch()
 
9
  y = np.sin(2 * np.pi * f * x / Fs)
10
  plt.plot(x, y)
11
 
12
+ with gr.Blocks() as demo:
 
 
13
  gr.Plot(value=plt)
14
 
15
  demo.launch()