Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -100,12 +100,17 @@ with gr.Blocks() as demo:
|
|
100 |
"""Enter a topic and get a quick Mind Map. Use examples as a guide. \n\nNote: Error typically occurs with wrong OpenAI API key & sometimes with ChatGPT's inability to give a structured mindmap"""
|
101 |
)
|
102 |
with gr.Row() as row:
|
103 |
-
with gr.
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
|
|
|
|
|
|
|
|
|
|
109 |
with gr.Row() as row:
|
110 |
with gr.Column():
|
111 |
output_image1 = gr.components.Image(label="Your Mind Map as Graph")
|
|
|
100 |
"""Enter a topic and get a quick Mind Map. Use examples as a guide. \n\nNote: Error typically occurs with wrong OpenAI API key & sometimes with ChatGPT's inability to give a structured mindmap"""
|
101 |
)
|
102 |
with gr.Row() as row:
|
103 |
+
with gr.Row() as row:
|
104 |
+
with gr.Column():
|
105 |
+
textbox1 = gr.Textbox(placeholder="Enter topic for Mind Map...", lines=1,label='Your topic (Mandatory)')
|
106 |
+
with gr.Column():
|
107 |
+
textbox2 = gr.Textbox(placeholder="Enter OpenAI API Key...", lines=1,label='Your API Key (Mandatory)')
|
108 |
+
with gr.Row() as row:
|
109 |
+
with gr.Column():
|
110 |
+
btn = gr.Button("Generate")
|
111 |
+
with gr.Column():
|
112 |
+
examples = gr.Examples(examples=['English Premier League','Heavy metal music','Face recognition','Arsenal Football Club',],
|
113 |
+
inputs=[textbox1])
|
114 |
with gr.Row() as row:
|
115 |
with gr.Column():
|
116 |
output_image1 = gr.components.Image(label="Your Mind Map as Graph")
|