Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,6 @@ from datetime import datetime
|
|
6 |
from os import listdir
|
7 |
from web import Online_Scraper
|
8 |
import requests
|
9 |
-
import google.generativeai as genai
|
10 |
from time import time as t
|
11 |
|
12 |
app = Flask(__name__)
|
@@ -121,6 +120,7 @@ def IMGEN():
|
|
121 |
|
122 |
@app.route('/generativeai', methods=['POST'])
|
123 |
def Genration():
|
|
|
124 |
global model,safety_settings,generation_config
|
125 |
data = request.json
|
126 |
prompt = data.get('prompt', '')
|
|
|
6 |
from os import listdir
|
7 |
from web import Online_Scraper
|
8 |
import requests
|
|
|
9 |
from time import time as t
|
10 |
|
11 |
app = Flask(__name__)
|
|
|
120 |
|
121 |
@app.route('/generativeai', methods=['POST'])
|
122 |
def Genration():
|
123 |
+
import google.generativeai as genai
|
124 |
global model,safety_settings,generation_config
|
125 |
data = request.json
|
126 |
prompt = data.get('prompt', '')
|