hra commited on
Commit
0e1857f
1 Parent(s): d3f89d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -11
app.py CHANGED
@@ -100,17 +100,16 @@ 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.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")
 
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
+ with gr.Column():
106
+ textbox2 = gr.Textbox(placeholder="Enter OpenAI API Key...", lines=1,label='Your API Key (Mandatory)')
107
+ with gr.Row() as row:
108
+ with gr.Column():
109
+ btn = gr.Button("Generate")
110
+ with gr.Column():
111
+ examples = gr.Examples(examples=['English Premier League','Heavy metal music','Face recognition','Arsenal Football Club',],
112
+ inputs=[textbox1])
 
113
  with gr.Row() as row:
114
  with gr.Column():
115
  output_image1 = gr.components.Image(label="Your Mind Map as Graph")