Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import google.generativeai as genai
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import json
|
|
|
5 |
from getvalues import getValues
|
6 |
from datetime import datetime, timedelta
|
7 |
import uuid
|
@@ -51,7 +52,7 @@ model = genai.GenerativeModel('gemini-pro')
|
|
51 |
|
52 |
|
53 |
def responsenew(data):
|
54 |
-
idval =
|
55 |
print(f"\n\n{data}")
|
56 |
newdata = data.replace("'", '"')
|
57 |
items = json.loads(newdata)
|
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import json
|
5 |
+
import random
|
6 |
from getvalues import getValues
|
7 |
from datetime import datetime, timedelta
|
8 |
import uuid
|
|
|
52 |
|
53 |
|
54 |
def responsenew(data):
|
55 |
+
idval = random.randint(1, 10)
|
56 |
print(f"\n\n{data}")
|
57 |
newdata = data.replace("'", '"')
|
58 |
items = json.loads(newdata)
|