Spaces:
Runtime error
Runtime error
Create app.py
Browse files123456789101112131415import gradio as grdef 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)app.pyAdded+15