Harshveer commited on
Commit
cd5e0ed
Β·
1 Parent(s): f574690

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -246,15 +246,15 @@ for model in models:
246
  models2.append(loaded_model)
247
 
248
 
249
- def text_it(inputs,outputs):
250
- grad.Interface(fn=generate,
251
- inputs=inputs,
252
- outputs=outputs,
253
- examples=examples,
254
- allow_flagging='never',
255
- cache_examples=False,
256
- theme="default").launch(enable_queue=True, debug=True)
257
- # return text_gen(inputs)
258
 
259
 
260
  def set_model(current_model_index):
 
246
  models2.append(loaded_model)
247
 
248
 
249
+ def text_it(inputs,text_gen=generate):
250
+ # grad.Interface(fn=generate,
251
+ # inputs=inputs,
252
+ # outputs=outputs,
253
+ # examples=examples,
254
+ # allow_flagging='never',
255
+ # cache_examples=False,
256
+ # theme="default").launch(enable_queue=True, debug=True)
257
+ return text_gen(inputs)
258
 
259
 
260
  def set_model(current_model_index):