Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,18 @@
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
# coding: utf-8
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
import pandas as pd
|
| 5 |
import numpy as np
|
| 6 |
import tensorflow as tf
|
|
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
# coding: utf-8
|
| 3 |
|
| 4 |
+
import subprocess
|
| 5 |
+
|
| 6 |
+
# Define the command you want to run
|
| 7 |
+
command = 'pip install --no-cache-dir gradio==3.26.0'
|
| 8 |
+
|
| 9 |
+
# Use subprocess to run the command
|
| 10 |
+
try:
|
| 11 |
+
subprocess.check_call(command, shell=True)
|
| 12 |
+
print("Installation successful!")
|
| 13 |
+
except subprocess.CalledProcessError as e:
|
| 14 |
+
print(f"Installation failed with error: {e}")
|
| 15 |
+
|
| 16 |
import pandas as pd
|
| 17 |
import numpy as np
|
| 18 |
import tensorflow as tf
|