rahulvenkk commited on
Commit
5637cf2
β€’
1 Parent(s): fd62b72

update instructions

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -98,8 +98,7 @@ def get_c(x, points):
98
 
99
  with gr.Blocks() as demo:
100
  with gr.Row():
101
- gr.Markdown('''# Generate interventions!πŸš€
102
- Upload an image and click to select the start and end points for arrows. Dots will be shown at the beginning and end of each arrow. You can also create zero-length vectors (just a dot) by enabling the toggle below.
103
  ''')
104
 
105
  # Annotating arrows on an image
@@ -114,7 +113,7 @@ with gr.Blocks() as demo:
114
  selected_points = gr.State([]) # store points
115
  zero_length_toggle = gr.Checkbox(label="Select patches to be kept fixed", value=False) # Toggle for zero-length vectors
116
  with gr.Row():
117
- gr.Markdown('1. **Click on the image** to specify patch motion by selecting a start and end point. \n 2. After selecting the points to move, enable the **"Select patches to be kept fixed"** checkbox to choose a few points to keep fixed. \n 3. **Click "Run Model"** to visualize the result of the intervention.')
118
  undo_button = gr.Button('Undo last action')
119
  clear_button = gr.Button('Clear All')
120
 
 
98
 
99
  with gr.Blocks() as demo:
100
  with gr.Row():
101
+ gr.Markdown('''# Scene editing interventions with Counterfactual World Models!
 
102
  ''')
103
 
104
  # Annotating arrows on an image
 
113
  selected_points = gr.State([]) # store points
114
  zero_length_toggle = gr.Checkbox(label="Select patches to be kept fixed", value=False) # Toggle for zero-length vectors
115
  with gr.Row():
116
+ gr.Markdown('1. **Click on the image** to specify patch motion by selecting a start and end point. \n 2. After selecting the points to move, enable the **"Select patches to be kept fixed"** checkbox to choose a few points to keep fixed. \n 3. **Click "Run Model"** to visualize the result of the edit.')
117
  undo_button = gr.Button('Undo last action')
118
  clear_button = gr.Button('Clear All')
119