house_md_bot / app.py
ekaterinatao's picture
Update app.py
c904f3b verified
raw
history blame
474 Bytes
import gradio as gr
from utils.get_answer import get_answer
title = "HouseMD bot"
description = "Gradio Demo for telegram bot.\
To use it, simply add your text message.\
I've used the API on this Space to deploy the model on a Telegram bot."
interface = gr.Interface(
fn=get_answer,
inputs=gr.Textbox(label="Input message to House MD", lines=3),
outputs=gr.Textbox(label="House MD's answer"),
title=title,
description=description
)
interface.launch()