Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
# import torch
|
|
|
|
|
|
|
2 |
import os
|
3 |
-
|
|
|
|
|
|
|
4 |
import gradio as gr
|
5 |
|
6 |
# Use a pipeline as a high-level helper
|
|
|
1 |
# import torch
|
2 |
+
# import os
|
3 |
+
# os.system("pip install torch")
|
4 |
+
|
5 |
import os
|
6 |
+
|
7 |
+
# Install dependencies dynamically (Not recommended for production)
|
8 |
+
os.system("pip install torch transformers")
|
9 |
+
|
10 |
import gradio as gr
|
11 |
|
12 |
# Use a pipeline as a high-level helper
|