import gradio as gr import torch import moshi # Print out the contents of the moshi module print("Contents of moshi module:") print(dir(moshi)) # Try to access some common attributes or functions print("\nTrying to access common attributes or functions:") for item in ['load_model', 'transcribe', 'MoshiServer', 'Moshi', 'MoshiConfig']: try: attr = getattr(moshi, item) print(f"{item}: {attr}") except AttributeError: print(f"{item} not found in moshi module") # Create a simple Gradio interface def dummy_function(input_text): return f"Moshi package version: {moshi.__version__}" iface = gr.Interface( fn=dummy_function, inputs="text", outputs="text", title="Moshi Package Information", description="This app displays information about the installed moshi package." ) iface.launch()