Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,11 +5,11 @@ import gradio as gr
|
|
| 5 |
|
| 6 |
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
#iface.launch()
|
| 8 |
-
git clone https://github.com/huggingface/transformers.git
|
| 9 |
-
cd transformers
|
| 10 |
-
pip install
|
| 11 |
-
python -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('we love you'))"
|
| 12 |
-
|
| 13 |
#source .env/bin/activate
|
| 14 |
#pipenv install git+https://github.com/huggingface/transformers
|
| 15 |
#python -m pip install git+https://github.com/huggingface/transformers
|
|
|
|
| 5 |
|
| 6 |
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
#iface.launch()
|
| 8 |
+
#git clone https://github.com/huggingface/transformers.git
|
| 9 |
+
#cd transformers
|
| 10 |
+
#pip install
|
| 11 |
+
#python -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('we love you'))"
|
| 12 |
+
pip install 'transformers[torch]'
|
| 13 |
#source .env/bin/activate
|
| 14 |
#pipenv install git+https://github.com/huggingface/transformers
|
| 15 |
#python -m pip install git+https://github.com/huggingface/transformers
|