Spaces:
Runtime error
Runtime error
Commit
·
918585b
1
Parent(s):
fa6f784
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def predict(input, history=[]):
|
|
36 |
response = [(response[i], response[i+1]) for i in range(0, len(response)-1, 2)] # convert to tuples of list
|
37 |
return response, history
|
38 |
|
39 |
-
gr.Interface(fn = predict, inputs = ["textbox","state"], outputs = ["chatbot","state"],allow_flagging = "manual",
|
40 |
|
41 |
#theme ="grass",
|
42 |
#title = title,
|
|
|
36 |
response = [(response[i], response[i+1]) for i in range(0, len(response)-1, 2)] # convert to tuples of list
|
37 |
return response, history
|
38 |
|
39 |
+
gr.Interface(fn = predict, inputs = ["textbox","state"], outputs = ["chatbot","state"],allow_flagging = "manual",title = title, flagging_callback = hf_writer, description = description, article = article ).launch(enable_queue=True) # customizes the input component
|
40 |
|
41 |
#theme ="grass",
|
42 |
#title = title,
|