Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,11 @@ model = genai.GenerativeModel(
|
|
84 |
|
85 |
|
86 |
|
87 |
-
|
|
|
|
|
|
|
|
|
88 |
prompt = data
|
89 |
|
90 |
respo = model.generate_content(
|
@@ -93,13 +97,9 @@ def bardChat(data):
|
|
93 |
'temperature': 0,
|
94 |
'max_output_tokens': 100
|
95 |
}
|
96 |
-
)
|
97 |
|
98 |
return json.dumps(respo.text)
|
99 |
-
|
100 |
-
def responsenew(data):
|
101 |
-
|
102 |
-
return bardChat(data)
|
103 |
|
104 |
|
105 |
gradio_interface = gr.Interface(
|
|
|
84 |
|
85 |
|
86 |
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
+
def responsenew(data):
|
91 |
+
|
92 |
prompt = data
|
93 |
|
94 |
respo = model.generate_content(
|
|
|
97 |
'temperature': 0,
|
98 |
'max_output_tokens': 100
|
99 |
}
|
100 |
+
)
|
101 |
|
102 |
return json.dumps(respo.text)
|
|
|
|
|
|
|
|
|
103 |
|
104 |
|
105 |
gradio_interface = gr.Interface(
|