Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,16 +27,13 @@ def bardChat(data):
|
|
| 27 |
# Create a Bard object with the session and a timeout of 30 seconds
|
| 28 |
bard = Bard(session=session, timeout=30)
|
| 29 |
answer = bard.get_answer(data)['content']
|
| 30 |
-
print(answer)
|
| 31 |
-
return
|
| 32 |
|
| 33 |
-
|
| 34 |
-
def responsenew(data):
|
| 35 |
-
return bardChat(data)
|
| 36 |
|
| 37 |
|
| 38 |
gradio_interface = gradio.Interface(
|
| 39 |
-
fn =
|
| 40 |
inputs = "text",
|
| 41 |
outputs = "text"
|
| 42 |
)
|
|
|
|
| 27 |
# Create a Bard object with the session and a timeout of 30 seconds
|
| 28 |
bard = Bard(session=session, timeout=30)
|
| 29 |
answer = bard.get_answer(data)['content']
|
| 30 |
+
# print(answer)
|
| 31 |
+
return answer
|
| 32 |
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
gradio_interface = gradio.Interface(
|
| 36 |
+
fn = bardChat,
|
| 37 |
inputs = "text",
|
| 38 |
outputs = "text"
|
| 39 |
)
|