Spaces:
Running
Running
replacing breakpoints with traceback logging in cli.py, interface.py, and minimax.py
Browse files- cli.py +2 -2
- interface.py +2 -2
- modules/llm/minimax.py +2 -1
cli.py
CHANGED
|
@@ -69,8 +69,8 @@ def main():
|
|
| 69 |
f"{query_audio},{config['asr_model']},{config['llm_model']},{config['svs_model']},{config['melody_source']},{config['language']},{config['speaker']},{output_audio},{results['asr_text']},{results['llm_text']},{metrics_str}\n"
|
| 70 |
)
|
| 71 |
except Exception as e:
|
| 72 |
-
|
| 73 |
-
|
| 74 |
raise e
|
| 75 |
|
| 76 |
|
|
|
|
| 69 |
f"{query_audio},{config['asr_model']},{config['llm_model']},{config['svs_model']},{config['melody_source']},{config['language']},{config['speaker']},{output_audio},{results['asr_text']},{results['llm_text']},{metrics_str}\n"
|
| 70 |
)
|
| 71 |
except Exception as e:
|
| 72 |
+
import traceback
|
| 73 |
+
logger.error(traceback.format_exc())
|
| 74 |
raise e
|
| 75 |
|
| 76 |
|
interface.py
CHANGED
|
@@ -159,8 +159,8 @@ class GradioInterface:
|
|
| 159 |
|
| 160 |
return demo
|
| 161 |
except Exception as e:
|
| 162 |
-
|
| 163 |
-
|
| 164 |
return gr.Blocks()
|
| 165 |
|
| 166 |
def update_character(self, character):
|
|
|
|
| 159 |
|
| 160 |
return demo
|
| 161 |
except Exception as e:
|
| 162 |
+
import traceback
|
| 163 |
+
print(traceback.format_exc())
|
| 164 |
return gr.Blocks()
|
| 165 |
|
| 166 |
def update_character(self, character):
|
modules/llm/minimax.py
CHANGED
|
@@ -77,7 +77,8 @@ class MiniMaxLLM(AbstractLLMModel):
|
|
| 77 |
)
|
| 78 |
except Exception as e:
|
| 79 |
print(f"Failed to load MiniMax model: {e}")
|
| 80 |
-
|
|
|
|
| 81 |
raise e
|
| 82 |
|
| 83 |
def generate(
|
|
|
|
| 77 |
)
|
| 78 |
except Exception as e:
|
| 79 |
print(f"Failed to load MiniMax model: {e}")
|
| 80 |
+
import traceback
|
| 81 |
+
print(traceback.format_exc())
|
| 82 |
raise e
|
| 83 |
|
| 84 |
def generate(
|