Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1468,8 +1468,8 @@ def create_interface():
|
|
1468 |
# Definir ejemplos
|
1469 |
examples = gr.Examples(
|
1470 |
examples=[
|
1471 |
-
[["examples/biomass_models_comparison.csv"], "
|
1472 |
-
[["examples/substrate_kinetics_results.xlsx"], "
|
1473 |
],
|
1474 |
inputs=[files_input, model_selector, detail_level, additional_specs],
|
1475 |
label=TRANSLATIONS[current_language]['examples']
|
@@ -1522,15 +1522,6 @@ def create_interface():
|
|
1522 |
|
1523 |
# Funci贸n principal
|
1524 |
def main():
|
1525 |
-
if not os.getenv("ANTHROPIC_API_KEY"):
|
1526 |
-
print("鈿狅笍 Configure ANTHROPIC_API_KEY in HuggingFace Space secrets")
|
1527 |
-
return gr.Interface(
|
1528 |
-
fn=lambda x: TRANSLATIONS['en']['error_no_api'],
|
1529 |
-
inputs=gr.Textbox(),
|
1530 |
-
outputs=gr.Textbox(),
|
1531 |
-
title="Configuration Error"
|
1532 |
-
)
|
1533 |
-
|
1534 |
return create_interface()
|
1535 |
|
1536 |
# Para ejecuci贸n local
|
@@ -1540,5 +1531,6 @@ if __name__ == "__main__":
|
|
1540 |
demo.launch(
|
1541 |
server_name="0.0.0.0",
|
1542 |
server_port=7860,
|
|
|
1543 |
share=False
|
1544 |
)
|
|
|
1468 |
# Definir ejemplos
|
1469 |
examples = gr.Examples(
|
1470 |
examples=[
|
1471 |
+
[["examples/biomass_models_comparison.csv"], "Qwen/Qwen3-14B", "detailed", ""],
|
1472 |
+
[["examples/substrate_kinetics_results.xlsx"], "Qwen/Qwen3-14B", "summarized", "Focus on temperature effects"]
|
1473 |
],
|
1474 |
inputs=[files_input, model_selector, detail_level, additional_specs],
|
1475 |
label=TRANSLATIONS[current_language]['examples']
|
|
|
1522 |
|
1523 |
# Funci贸n principal
|
1524 |
def main():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1525 |
return create_interface()
|
1526 |
|
1527 |
# Para ejecuci贸n local
|
|
|
1531 |
demo.launch(
|
1532 |
server_name="0.0.0.0",
|
1533 |
server_port=7860,
|
1534 |
+
debug=True,
|
1535 |
share=False
|
1536 |
)
|