Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,6 @@ import requests
|
|
3 |
import os
|
4 |
import json
|
5 |
from bardapi import Bard
|
6 |
-
# from executequery import ExecuteQuery
|
7 |
-
# from dotenv import load_dotenv
|
8 |
-
|
9 |
-
# load_dotenv()
|
10 |
|
11 |
bardKey = os.environ.get('_BARD_API_KEY')
|
12 |
|
@@ -39,13 +35,6 @@ def bardChat(data):
|
|
39 |
def responsenew(data):
|
40 |
return bardChat(data)
|
41 |
|
42 |
-
# result = ExecuteQuery(data)
|
43 |
-
|
44 |
-
# if result[1] == "name":
|
45 |
-
# return result[0]
|
46 |
-
# else:
|
47 |
-
|
48 |
-
|
49 |
|
50 |
gradio_interface = gradio.Interface(
|
51 |
fn = responsenew,
|
|
|
3 |
import os
|
4 |
import json
|
5 |
from bardapi import Bard
|
|
|
|
|
|
|
|
|
6 |
|
7 |
bardKey = os.environ.get('_BARD_API_KEY')
|
8 |
|
|
|
35 |
def responsenew(data):
|
36 |
return bardChat(data)
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
gradio_interface = gradio.Interface(
|
40 |
fn = responsenew,
|