Update interface.py
Browse files- interface.py +1 -3
interface.py
CHANGED
|
@@ -56,7 +56,6 @@ def generate_analysis(prompt, max_length=1024, device=None):
|
|
| 56 |
except Exception as e:
|
| 57 |
return f"Ocurri贸 un error durante el an谩lisis: {e}"
|
| 58 |
|
| 59 |
-
@spaces.GPU(duration=100)
|
| 60 |
def parse_bounds(bounds_str, num_params):
|
| 61 |
try:
|
| 62 |
bounds = eval(f"[{bounds_str}]")
|
|
@@ -69,8 +68,7 @@ def parse_bounds(bounds_str, num_params):
|
|
| 69 |
lower_bounds = [-np.inf] * num_params
|
| 70 |
upper_bounds = [np.inf] * num_params
|
| 71 |
return lower_bounds, upper_bounds
|
| 72 |
-
|
| 73 |
-
@spaces.GPU(duration=100)
|
| 74 |
def process_and_plot(
|
| 75 |
file,
|
| 76 |
biomass_eq1, biomass_eq2, biomass_eq3,
|
|
|
|
| 56 |
except Exception as e:
|
| 57 |
return f"Ocurri贸 un error durante el an谩lisis: {e}"
|
| 58 |
|
|
|
|
| 59 |
def parse_bounds(bounds_str, num_params):
|
| 60 |
try:
|
| 61 |
bounds = eval(f"[{bounds_str}]")
|
|
|
|
| 68 |
lower_bounds = [-np.inf] * num_params
|
| 69 |
upper_bounds = [np.inf] * num_params
|
| 70 |
return lower_bounds, upper_bounds
|
| 71 |
+
|
|
|
|
| 72 |
def process_and_plot(
|
| 73 |
file,
|
| 74 |
biomass_eq1, biomass_eq2, biomass_eq3,
|