Spaces:
Running
Running
MarcusLoren
commited on
Commit
•
21129f6
1
Parent(s):
90f1226
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,6 @@ import gradio as gr
|
|
10 |
import numpy as np
|
11 |
|
12 |
transformer = MeshTransformer.from_pretrained("MarcusLoren/MeshGPT-preview")
|
13 |
-
total_generations = 0
|
14 |
-
|
15 |
def save_as_obj(file_path):
|
16 |
v, f = igl.read_triangle_mesh(file_path)
|
17 |
v, f, _, _ = igl.remove_unreferenced(v, f)
|
@@ -24,7 +22,6 @@ def predict(text, num_input, num_temp):
|
|
24 |
transformer.eval()
|
25 |
labels = [label.strip() for label in text.split(',')]
|
26 |
output = []
|
27 |
-
total_generations +=1
|
28 |
current_time = time.time()
|
29 |
formatted_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(current_time))
|
30 |
print(formatted_time, " Input:", text, "num_input", num_input, "num_temp",num_temp , "total_generations", total_generations)
|
|
|
10 |
import numpy as np
|
11 |
|
12 |
transformer = MeshTransformer.from_pretrained("MarcusLoren/MeshGPT-preview")
|
|
|
|
|
13 |
def save_as_obj(file_path):
|
14 |
v, f = igl.read_triangle_mesh(file_path)
|
15 |
v, f, _, _ = igl.remove_unreferenced(v, f)
|
|
|
22 |
transformer.eval()
|
23 |
labels = [label.strip() for label in text.split(',')]
|
24 |
output = []
|
|
|
25 |
current_time = time.time()
|
26 |
formatted_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(current_time))
|
27 |
print(formatted_time, " Input:", text, "num_input", num_input, "num_temp",num_temp , "total_generations", total_generations)
|