Spaces:
Runtime error
Runtime error
Install at runtime
Browse files- app.py +11 -0
- requirements.txt +0 -1
app.py
CHANGED
|
@@ -1,4 +1,15 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
def greet(name):
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import subprocess
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
subprocess.run(
|
| 6 |
+
"curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh", shell=True
|
| 7 |
+
)
|
| 8 |
+
subprocess.run("pip install -U pip", shell=True)
|
| 9 |
+
subprocess.run(
|
| 10 |
+
"pip install -e git+https://github.com/huggingface/tokenizers/#egg=tokenizers\&subdirectory=bindings/python",
|
| 11 |
+
shell=True,
|
| 12 |
+
)
|
| 13 |
|
| 14 |
|
| 15 |
def greet(name):
|
requirements.txt
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
setuptools_rust
|
| 2 |
-
-e git+https://github.com/huggingface/tokenizers/#egg=tokenizers\&subdirectory=bindings/python
|
| 3 |
fastapi==0.74.*
|
| 4 |
requests==2.27.*
|
| 5 |
torch==1.11.*
|
|
|
|
| 1 |
setuptools_rust
|
|
|
|
| 2 |
fastapi==0.74.*
|
| 3 |
requests==2.27.*
|
| 4 |
torch==1.11.*
|