From 805a5136a1da6787a13b0a084892c2ba0aec1f3b Mon Sep 17 00:00:00 2001 From: pngwn Date: Fri, 16 Feb 2024 17:27:07 +0000 Subject: [PATCH] fix test reqs in functional tests (#7454) --- .github/workflows/test-functional.yml | 1 + demo/gradio_pdf_demo/requirements.txt | 1 + demo/gradio_pdf_demo/run.ipynb | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 demo/gradio_pdf_demo/requirements.txt diff --git a/.github/workflows/test-functional.yml b/.github/workflows/test-functional.yml index 396f9c4dff..10b9513f6a 100644 --- a/.github/workflows/test-functional.yml +++ b/.github/workflows/test-functional.yml @@ -56,6 +56,7 @@ jobs: run: | . venv/bin/activate python -m pip install -r demo/outbreak_forecast/requirements.txt + python -m pip install -r demo/gradio_pdf_demo/requirements.txt - run: pnpm exec playwright install chromium - name: run browser tests run: | diff --git a/demo/gradio_pdf_demo/requirements.txt b/demo/gradio_pdf_demo/requirements.txt new file mode 100644 index 0000000000..e35b309bee --- /dev/null +++ b/demo/gradio_pdf_demo/requirements.txt @@ -0,0 +1 @@ +gradio_pdf==0.0.3 diff --git a/demo/gradio_pdf_demo/run.ipynb b/demo/gradio_pdf_demo/run.ipynb index 699dd3292c..7b60f91055 100644 --- a/demo/gradio_pdf_demo/run.ipynb +++ b/demo/gradio_pdf_demo/run.ipynb @@ -1 +1 @@ -{"cells": [{"cell_type": "markdown", "id": "302934307671667531413257853548643485645", "metadata": {}, "source": ["# Gradio Demo: gradio_pdf_demo"]}, {"cell_type": "code", "execution_count": null, "id": "272996653310673477252411125948039410165", "metadata": {}, "outputs": [], "source": ["!pip install -q gradio "]}, {"cell_type": "code", "execution_count": null, "id": "288918539441861185822528903084949547379", "metadata": {}, "outputs": [], "source": ["import gradio as gr\n", "from gradio_pdf import PDF\n", "\n", "\n", "demo = gr.Interface(lambda x: x,\n", " PDF(),\n", " gr.File())\n", "\n", "if __name__ == \"__main__\":\n", " demo.launch()"]}], "metadata": {}, "nbformat": 4, "nbformat_minor": 5} \ No newline at end of file +{"cells": [{"cell_type": "markdown", "id": "302934307671667531413257853548643485645", "metadata": {}, "source": ["# Gradio Demo: gradio_pdf_demo"]}, {"cell_type": "code", "execution_count": null, "id": "272996653310673477252411125948039410165", "metadata": {}, "outputs": [], "source": ["!pip install -q gradio gradio_pdf==0.0.3 "]}, {"cell_type": "code", "execution_count": null, "id": "288918539441861185822528903084949547379", "metadata": {}, "outputs": [], "source": ["import gradio as gr\n", "from gradio_pdf import PDF\n", "\n", "\n", "demo = gr.Interface(lambda x: x,\n", " PDF(),\n", " gr.File())\n", "\n", "if __name__ == \"__main__\":\n", " demo.launch()"]}], "metadata": {}, "nbformat": 4, "nbformat_minor": 5} \ No newline at end of file