Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
os.system('git clone https://github.com/modelscope/swift.git')
|
| 4 |
+
os.system('pip install ./swift["llm"]')
|
| 5 |
+
os.system('pip install huggingface_hub trl accelerate peft transformers -U')
|
| 6 |
+
|
| 7 |
+
from swift.ui.app import run_ui
|
| 8 |
+
|
| 9 |
+
if __name__ == '__main__':
|
| 10 |
+
run_ui()
|