Abubakar Abid
commited on
Commit
·
d9f024f
1
Parent(s):
6de000a
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,16 @@
|
|
| 1 |
-
|
| 2 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
| 5 |
|
|
|
|
| 1 |
+
#### ignore these lines -- just needed to install and build a particular branch
|
| 2 |
import os
|
| 3 |
+
os.system("git clone git@github.com:gradio-app/gradio.git")
|
| 4 |
+
os.system("cd gradio")
|
| 5 |
+
os.system("git checkout flagging-spaces")
|
| 6 |
+
os.system("pip uninstall gradio")
|
| 7 |
+
os.system("pip install -e gradio")
|
| 8 |
+
os.system("cd frontend")
|
| 9 |
+
os.system("npm install")
|
| 10 |
+
os.system("npm run build")
|
| 11 |
+
### Real code is below
|
| 12 |
+
|
| 13 |
+
import gradio as gr
|
| 14 |
|
| 15 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
| 16 |
|