Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -2,6 +2,13 @@ from fastapi import FastAPI, Request, HTTPException
|
|
2 |
from fastapi.responses import PlainTextResponse
|
3 |
from fastapi.middleware.cors import CORSMiddleware
|
4 |
from twilio.twiml.messaging_response import MessagingResponse
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
GOOD_BOY_URL = (
|
7 |
"https://images.unsplash.com/photo-1518717758536-85ae29035b6d?ixlib=rb-1.2.1"
|
|
|
2 |
from fastapi.responses import PlainTextResponse
|
3 |
from fastapi.middleware.cors import CORSMiddleware
|
4 |
from twilio.twiml.messaging_response import MessagingResponse
|
5 |
+
import os
|
6 |
+
import google.generativeai as genai
|
7 |
+
|
8 |
+
secret = os.environ["key"]
|
9 |
+
|
10 |
+
genai.configure(api_key=secret)
|
11 |
+
model = genai.GenerativeModel('gemini-pro')
|
12 |
|
13 |
GOOD_BOY_URL = (
|
14 |
"https://images.unsplash.com/photo-1518717758536-85ae29035b6d?ixlib=rb-1.2.1"
|