Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,4 +11,11 @@ def answer_question(question, context):
|
|
11 |
response = _pipeline(di)
|
12 |
return response
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
response = _pipeline(di)
|
12 |
return response
|
13 |
|
14 |
+
grad.Interface(answer_question, inputs=["text", "text"], outputs="text").launch()
|
15 |
+
|
16 |
+
text = grad.inputs.Textbox(placeholder="Lets chat together")
|
17 |
+
grad.Interface (fn=converse,
|
18 |
+
theme="default",
|
19 |
+
inputs=[text, "state"],
|
20 |
+
outputs=["html", "state"],
|
21 |
+
css=css).launch()
|