Peter Organisciak commited on
Commit
4c131cd
·
1 Parent(s): 69b1c36

Adapting inputs to try to debug online-only bug

Browse files
Files changed (1) hide show
  1. gradio-ocsai-d.py +5 -2
gradio-ocsai-d.py CHANGED
@@ -111,14 +111,17 @@ editor = gr.ImageEditor(type='pil',
111
 
112
  examples = []
113
  for k, v in prompt_images.items():
114
- examples.append(dict(background=Image.open(v), composite=None, layers=[]))
115
 
116
  demo = gr.Interface(fn=classify_image,
117
  inputs=[editor],
118
  outputs=gr.Plot(),
119
  title="Ocsai-D",
120
  description="Complete the drawing and classify the originality. Choose the brush icon below the image to start editing.\n\nModel from *A Comparison of Supervised and Unsupervised Learning Methods in Automated Scoring of Figural Tests of Creativity* ([preprint](http://dx.doi.org/10.13140/RG.2.2.26865.25444)).\n\nExamples are from MTCI ([Barbot 2018](https://pubmed.ncbi.nlm.nih.gov/30618952/)).",
121
- examples=examples
 
 
 
122
  )
123
 
124
  demo.launch(debug=True)
 
111
 
112
  examples = []
113
  for k, v in prompt_images.items():
114
+ examples.append([dict(background=Image.open(v), composite=None, layers=[])])
115
 
116
  demo = gr.Interface(fn=classify_image,
117
  inputs=[editor],
118
  outputs=gr.Plot(),
119
  title="Ocsai-D",
120
  description="Complete the drawing and classify the originality. Choose the brush icon below the image to start editing.\n\nModel from *A Comparison of Supervised and Unsupervised Learning Methods in Automated Scoring of Figural Tests of Creativity* ([preprint](http://dx.doi.org/10.13140/RG.2.2.26865.25444)).\n\nExamples are from MTCI ([Barbot 2018](https://pubmed.ncbi.nlm.nih.gov/30618952/)).",
121
+ examples=gr.Examples(
122
+ examples=examples,
123
+ label="Prompts"
124
+ )
125
  )
126
 
127
  demo.launch(debug=True)