patrickvonplaten commited on
Commit
c16d47f
·
1 Parent(s): 88fd33d
Files changed (2) hide show
  1. __pycache__/app.cpython-310.pyc +0 -0
  2. app.py +5 -5
__pycache__/app.cpython-310.pyc CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
 
app.py CHANGED
@@ -19,7 +19,7 @@ SUBMISSIONS = {
19
  "karlo": load_dataset(os.path.join(ORG, "if-v-1.0"))["train"],
20
  # "Kadinsky":
21
  }
22
- NUM_QUESTIONS = 10
23
  MODEL_KEYS = "-".join(SUBMISSIONS.keys())
24
  SUBMISSION_ORG = f"results-{MODEL_KEYS}"
25
 
@@ -225,14 +225,14 @@ if True:
225
  fn=write_result,
226
  inputs=[selected_image, row_number, dataframe, prompt],
227
  outputs=[row_number, dataframe],
228
- ).then(
229
- fn=process,
230
- inputs=[dataframe, row_number],
231
- outputs=[gallery, prompt]
232
  ).then(
233
  fn=change_view,
234
  inputs=[row_number, dataframe],
235
  outputs=[result_view, gallery_view, result]
 
 
 
 
236
  ).then(
237
  fn=lambda x: 0 if x == NUM_QUESTIONS else x,
238
  inputs=[row_number],
 
19
  "karlo": load_dataset(os.path.join(ORG, "if-v-1.0"))["train"],
20
  # "Kadinsky":
21
  }
22
+ NUM_QUESTIONS = 2
23
  MODEL_KEYS = "-".join(SUBMISSIONS.keys())
24
  SUBMISSION_ORG = f"results-{MODEL_KEYS}"
25
 
 
225
  fn=write_result,
226
  inputs=[selected_image, row_number, dataframe, prompt],
227
  outputs=[row_number, dataframe],
 
 
 
 
228
  ).then(
229
  fn=change_view,
230
  inputs=[row_number, dataframe],
231
  outputs=[result_view, gallery_view, result]
232
+ ).then(
233
+ fn=process,
234
+ inputs=[dataframe, row_number],
235
+ outputs=[gallery, prompt]
236
  ).then(
237
  fn=lambda x: 0 if x == NUM_QUESTIONS else x,
238
  inputs=[row_number],