Anni123 commited on
Commit
537b08a
1 Parent(s): 66ddac6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -195,7 +195,10 @@ def self_construction(datatype):
195
  fig_adr = './figs/last_letters.png'
196
  demo_path = './demos/last_letters'
197
  else:
198
- pass ##todo: datatype == 'UNDEFINED'
 
 
 
199
 
200
  ##read corresponding demo
201
  x, z, y =[], [], []
 
195
  fig_adr = './figs/last_letters.png'
196
  demo_path = './demos/last_letters'
197
  else:
198
+ return gr.update(value="## 🔭 Self construction..."), gr.update(visible=False), \
199
+ gr.update(visible=False), gr.update(value="UNDEFINED Scenario!\n We just employ the zero-shot setting."), \
200
+ gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
201
+ #pass ##todo: datatype == 'UNDEFINED'
202
 
203
  ##read corresponding demo
204
  x, z, y =[], [], []