| import gradio as gr | |
| def predict_answer(question): | |
| return f'You asked: {question}' | |
| iface = gr.Interface(fn=predict_answer, inputs='text', outputs='text') | |
| iface.launch() |
| import gradio as gr | |
| def predict_answer(question): | |
| return f'You asked: {question}' | |
| iface = gr.Interface(fn=predict_answer, inputs='text', outputs='text') | |
| iface.launch() |