hra commited on
Commit
d3f89d8
1 Parent(s): b2bcce4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -6
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.Column():
104
- textbox1 = gr.Textbox(placeholder="Enter topic for Mind Map...", lines=1,label='Your topic (Mandatory)')
105
- textbox2 = gr.Textbox(placeholder="Enter OpenAI API Key...", lines=1,label='Your API Key (Mandatory)')
106
- btn = gr.Button("Generate")
107
- examples = gr.Examples(examples=['English Premier League','Heavy metal music','Face recognition','Arsenal Football Club',],
108
- inputs=[textbox1])
 
 
 
 
 
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")