anhdt-dsai-02 commited on
Commit
c88086b
1 Parent(s): 136638c

Update gemini.py

Browse files
Files changed (1) hide show
  1. gemini.py +1 -3
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(infor, key, params={}):
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
  {