Spaces:
Runtime error
Runtime error
import os | |
import gradio as gr | |
from gradio_client import Client | |
read_key = os.environ.get('HF_TOKEN', None) | |
uname = os.environ.get('uname', None) | |
pwd = os.environ.get('pwd', None) | |
client = Client("aaqibsaeed/WbjkkRJBPxkB", hf_token=read_key) | |
with gr.Blocks(title="Report Generation - EnvisionIO") as demo: | |
description = "Report Generation - EnvisionIO" | |
article = "" | |
waveform_options=gr.WaveformOptions( | |
waveform_color="#01C6FF", | |
waveform_progress_color="#0066B4", | |
skip_length=1, | |
show_controls=False, | |
) | |
simple_transcribe = gr.Interface(fn=client.predict, | |
description=description, | |
article=article, | |
inputs=[ | |
gr.Audio(sources=["upload"], type="filepath", | |
label="Input", waveform_options = waveform_options), | |
], outputs=[ | |
gr.Text(label="Report"), | |
], | |
) | |
if __name__ == "__main__": | |
demo.launch(show_api=False, auth=(uname, pwd)) |