Spaces:
Sleeping
Sleeping
import gradio as gr | |
from dotenv import load_dotenv | |
load_dotenv() | |
def answer(query): | |
return f"Here's the answer to your question: {query}" | |
description = """ | |
### Ask about my experience, skills, and education! | |
I built this using [Gradio](https://gradio.app) and [LangChain](https://langchain.readthedocs.io/en/latest/). | |
""" | |
title = "Career Chatbot" | |
iface = gr.Interface( | |
fn=answer, | |
inputs=gr.Textbox( | |
value="What's his experience in recommender systems?", label="Question" | |
), | |
outputs=gr.Textbox(label="Answer"), | |
description=description, | |
title=title, | |
analytics_enabled=True, | |
allow_flagging="auto", | |
) | |
iface.launch() | |