gradio/demo/basic_text.py
2020-06-18 13:15:27 -07:00

15 lines
427 B
Python

import gradio as gr
def answer_question(text1, text2):
return text1, text2, {"plagiarism": 0.62, "original": 0.38}
gr.Interface(answer_question,
[
gr.inputs.Microphone(label="speech"),
gr.inputs.Dropdown(["Deepspeech", "Sphynx", "Wav2Text"], label="model"),
], [
gr.outputs.Textbox(label="text 1", lines=8),
]
).launch()