Spaces:
Running
Running
typo fixed and home message changed
Browse files
app.py
CHANGED
@@ -9,13 +9,13 @@ import google.generativeai as genai
|
|
9 |
anvil.server.connect('PLMOIU5VCGGUOJH2XORIBWV3-ZXZVFLWX7QFIIAF4')
|
10 |
|
11 |
app=Flask(__name__)
|
12 |
-
MESSAGED={'title':'
|
13 |
-
'messageL':['
|
14 |
|
15 |
tokenizer = AutoTokenizer.from_pretrained('allenai/specter')
|
16 |
encoder = AutoModel.from_pretrained('allenai/specter')
|
17 |
|
18 |
-
GOOGLE_API_KEY=os.
|
19 |
genai.configure(api_key=GOOGLE_API_KEY)
|
20 |
|
21 |
@anvil.server.callable
|
|
|
9 |
anvil.server.connect('PLMOIU5VCGGUOJH2XORIBWV3-ZXZVFLWX7QFIIAF4')
|
10 |
|
11 |
app=Flask(__name__)
|
12 |
+
MESSAGED={'title':'API Server',
|
13 |
+
'messageL':['published server functions:','encode(text)', 'call_gemini(text)']}
|
14 |
|
15 |
tokenizer = AutoTokenizer.from_pretrained('allenai/specter')
|
16 |
encoder = AutoModel.from_pretrained('allenai/specter')
|
17 |
|
18 |
+
GOOGLE_API_KEY=os.getenv('GOOGLE_API_KEY')
|
19 |
genai.configure(api_key=GOOGLE_API_KEY)
|
20 |
|
21 |
@anvil.server.callable
|