Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def get_learning_curriculum(openapikey,topic):
|
|
100 |
with gr.Blocks() as demo:
|
101 |
gr.Markdown("<h1><center>BabyAGI creates Learning Curriculum</center></h1>")
|
102 |
gr.Markdown(
|
103 |
-
""" This is the first step of an experiment using BabyAGI as a "framework" to construct focused use cases (ex: learning curriculums). The flow uses two AI agents 1) Task creation agent: to create a task list & questions 2) Task execution agent: to execute the tasks & find answers to the questions. Unlike original BabyAGI concept, this is not open-ended. \n\nNote:
|
104 |
)
|
105 |
|
106 |
with gr.Row() as row:
|
@@ -108,7 +108,9 @@ with gr.Blocks() as demo:
|
|
108 |
textboxtopic = gr.Textbox(placeholder="Enter Topic for Curriculum...", lines=1,label='Topic')
|
109 |
with gr.Column():
|
110 |
textboxopenapi = gr.Textbox(placeholder="Enter OpenAPI Key...", lines=1,label='OpenAPI Key')
|
111 |
-
|
|
|
|
|
112 |
with gr.Row() as row:
|
113 |
btn = gr.Button("Generate \nCurriculum")
|
114 |
|
|
|
100 |
with gr.Blocks() as demo:
|
101 |
gr.Markdown("<h1><center>BabyAGI creates Learning Curriculum</center></h1>")
|
102 |
gr.Markdown(
|
103 |
+
""" This is the first step of an experiment using BabyAGI as a "framework" to construct focused use cases (ex: learning curriculums). The flow uses two AI agents 1) Task creation agent: to create a task list & questions 2) Task execution agent: to execute the tasks & find answers to the questions. Unlike original BabyAGI concept, this is not open-ended. \n\nNote: OpenAI agents (gpt-3.5-turbo) & llama-index are used. The analysis takes roughly 120 secs & may not always be consistent. An error occurs when the OpenAI Api key is not provided/ ChatGPT API is overloaded/ChatGPT is unable to correctly decipher & format the output\n\n Future directions: 1) Make the task creation more open ended or longer. 2) Discover multiple learning paths and make ChatGPT introspect on it before finalizing the optimal one 3)Learn from the answers and change the curriculum![visitors](https://visitor-badge.glitch.me/badge?page_id=hra/Curriculum-BabyAGI)"""
|
104 |
)
|
105 |
|
106 |
with gr.Row() as row:
|
|
|
108 |
textboxtopic = gr.Textbox(placeholder="Enter Topic for Curriculum...", lines=1,label='Topic')
|
109 |
with gr.Column():
|
110 |
textboxopenapi = gr.Textbox(placeholder="Enter OpenAPI Key...", lines=1,label='OpenAPI Key')
|
111 |
+
with gr.Row() as row:
|
112 |
+
examples = gr.Examples(examples=['Acrylic painting','latest NLP topic models','FIFA mobile game','Telemedicine'],
|
113 |
+
inputs=[textbox1])
|
114 |
with gr.Row() as row:
|
115 |
btn = gr.Button("Generate \nCurriculum")
|
116 |
|