mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
15 lines
427 B
Python
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()
|