CosmoAI commited on
Commit
8bc6d98
·
verified ·
1 Parent(s): f96c664

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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 = str(uuid.uuid4())
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)