Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -246,15 +246,15 @@ for model in models:
|
|
246 |
models2.append(loaded_model)
|
247 |
|
248 |
|
249 |
-
def text_it(inputs,
|
250 |
-
grad.Interface(fn=generate,
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
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):
|