Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| def invoke(openai_api_key): | |
| if (openai_api_key == ""): | |
| raise gr.Error("OpenAI API Key is required.") | |
| os.environ["OPENAI_API_KEY"] = openai_api_key | |
| return "TODO" | |
| gr.close_all() | |
| demo = gr.Interface(fn = invoke, | |
| inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1), | |
| gr.Textbox(label = "TODO", value="TODO", lines = 1)], | |
| outputs = [gr.Markdown(label = "TODO", value="TODO")], | |
| title = "Multi-Agent RAG: Chart Generation", | |
| description = "TODO") | |
| demo.launch() |