gradio/scripts/install_test_requirements.sh
Lucain 947d615db6
Sign in with Hugging Face (OAuth support) (#4943)
* first draft

* debug

* add print

* working oauth

* inject OAuth profile + enable OAuth when expected + some doc

* add changeset

* mypy

* opt

* open in a new tab only from iframe

* msg

* add changeset

* Apply suggestions from code review

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* fix injection + gr.Error

* allow third party cookie when possible

* add button to sign in/sign out button

* feedback changes

* oauth as optional dependency

* disable login/logout buttons locally

* nothing

* a bit of documentation

* Add tests for Login/Logout buttons

* Apply suggestions from code review

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* mention required dependencies

* fix package

* fix tests

* fix windows tests as well

* Fake profile on local debug

* doc

* fix tets

* lint

* fix test

* test buttons

* login button fix

* lint

* fix final tests

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-08-10 15:12:40 -04:00

13 lines
263 B
Bash

#!/bin/bash
cd "$(dirname ${0})/.."
source scripts/helpers.sh
pip_required
echo "Installing requirements before running tests..."
pip install --upgrade pip
pip install -r test/requirements.txt
pip install -r requirements-oauth.txt
pip install -e client/python