Spaces:
Sleeping
Sleeping
Lennard Schober
commited on
Commit
·
31eadc7
1
Parent(s):
d2ec756
Add requirements
Browse files- app.py +4 -6
- requirements.txt +3 -0
app.py
CHANGED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
import numpy as np
|
| 3 |
import os
|
| 4 |
import time
|
| 5 |
-
import plotly.graph_objs as go
|
| 6 |
-
import matplotlib.pyplot as plt
|
| 7 |
import shutil
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# Path to the npz folder
|
| 11 |
npz_folder = "npz"
|
|
@@ -15,7 +14,6 @@ glob_b = -2
|
|
| 15 |
glob_c = -4
|
| 16 |
glob_d = 7
|
| 17 |
|
| 18 |
-
|
| 19 |
def clear_folder(folder_path=npz_folder):
|
| 20 |
for filename in os.listdir(folder_path):
|
| 21 |
file_path = os.path.join(folder_path, filename)
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
import time
|
|
|
|
|
|
|
| 3 |
import shutil
|
| 4 |
+
|
| 5 |
+
import numpy as np
|
| 6 |
+
import gradio as gr
|
| 7 |
+
import plotly.graph_objs as go
|
| 8 |
|
| 9 |
# Path to the npz folder
|
| 10 |
npz_folder = "npz"
|
|
|
|
| 14 |
glob_c = -4
|
| 15 |
glob_d = 7
|
| 16 |
|
|
|
|
| 17 |
def clear_folder(folder_path=npz_folder):
|
| 18 |
for filename in os.listdir(folder_path):
|
| 19 |
file_path = os.path.join(folder_path, filename)
|
requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
numpy==1.24.3
|
| 2 |
+
gradio==5.9.1
|
| 3 |
+
plotly==5.24.1
|