test3 / app.py
mohammad2928git's picture
Create app.py
827775a verified
raw
history blame
No virus
479 Bytes
import gradio as gr
def greet(question, model_type):
print(f"question is {question}")
if model_type == "with memory":
out_gen = "with memory"
else:
out_gen = "with out memory"
print(f"out is {out_gen}")
return out_gen
demo = gr.Interface(fn=greet, inputs=["text", gr.Dropdown(
["with memory", "without memory"], label="Animal", info="Will add more animals later!"
),], outputs="text")
demo.launch(debug=True, share=True)