Spaces:
Sleeping
Sleeping
anhdt-dsai-02
commited on
Commit
•
c88086b
1
Parent(s):
136638c
Update gemini.py
Browse files
gemini.py
CHANGED
@@ -5,9 +5,7 @@ import asyncio
|
|
5 |
|
6 |
GEMINI_URL = "https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent"
|
7 |
|
8 |
-
async def complete_gemini_async(
|
9 |
-
question, sample = infor
|
10 |
-
prompt = f"Based on language and the answer of the following sample : {sample} \n Answer this the question : {question}"
|
11 |
data = {
|
12 |
"contents": [
|
13 |
{
|
|
|
5 |
|
6 |
GEMINI_URL = "https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent"
|
7 |
|
8 |
+
async def complete_gemini_async(prompt, key, params={}):
|
|
|
|
|
9 |
data = {
|
10 |
"contents": [
|
11 |
{
|