SergeyO7 commited on
Commit
7c00479
·
verified ·
1 Parent(s): 621c2f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -115,7 +115,7 @@ def plot_pladder(PLadder):
115
  ax.plot([0.5, 2.5], [1, 1], 'k--')
116
  ax.plot([1, 2], [2, 2], 'k--')
117
  # Define symbol positions outside the triangle
118
- positions = [(-0.2,0), (0.3,1), (0.8,2), (1.3,3), (2.2,2.2), (2.7,1.2), (3.2,0.2)]
119
  # Plot planet symbols
120
  for i, (x, y) in enumerate(positions):
121
  ax.text(x, y, planet_symbols[PLadder[i]], ha='center', va='center', fontsize=24)
@@ -159,7 +159,8 @@ def chat_interface(query):
159
  with gr.Blocks() as interface:
160
  with gr.Row():
161
  with gr.Column(scale=2):
162
- output_text = gr.Textbox(label="Response", lines=10)
 
163
  with gr.Column(scale=1):
164
  output_image = gr.Image(label="Planetary Ladder Plot")
165
  with gr.Row():
 
115
  ax.plot([0.5, 2.5], [1, 1], 'k--')
116
  ax.plot([1, 2], [2, 2], 'k--')
117
  # Define symbol positions outside the triangle
118
+ positions = [(0.2,0), (0.3,1.2), (0.8,2.2), (1.5,3), (2.2,2.2), (2.7,1.2), (3.2,0.2)]
119
  # Plot planet symbols
120
  for i, (x, y) in enumerate(positions):
121
  ax.text(x, y, planet_symbols[PLadder[i]], ha='center', va='center', fontsize=24)
 
159
  with gr.Blocks() as interface:
160
  with gr.Row():
161
  with gr.Column(scale=2):
162
+ output_text = gr.Textbox(label=
163
+ "Response", lines=10)
164
  with gr.Column(scale=1):
165
  output_image = gr.Image(label="Planetary Ladder Plot")
166
  with gr.Row():