suhyun.kang commited on
Commit
1371afd
1 Parent(s): 2e9ad55

add gemini

Browse files
Files changed (3) hide show
  1. README.md +2 -2
  2. app.py +1 -1
  3. requirments.txt +20 -1
README.md CHANGED
@@ -19,7 +19,7 @@
19
  Set your OpenAI API key as an environment variable and start the application:
20
 
21
  ```shell
22
- OPENAI_API_KEY=<your key> python3 app.py
23
  ```
24
 
25
- Replace <your key> with your actual OpenAI API key.
 
19
  Set your OpenAI API key as an environment variable and start the application:
20
 
21
  ```shell
22
+ GCP_PROJECT_ID=<your project id> OPENAI_API_KEY=<your key> python3 app.py
23
  ```
24
 
25
+ Replace <your project id> and <your key> with your GCP project ID and OpenAI API key respectively.
app.py CHANGED
@@ -9,7 +9,7 @@ from fastchat.serve.gradio_web_server import bot_response
9
  import gradio as gr
10
 
11
  # TODO(#1): Add more models.
12
- SUPPORTED_MODELS = ["gpt-4", "gpt-4-turbo", "gpt-3.5-turbo"]
13
 
14
 
15
  def user(user_message):
 
9
  import gradio as gr
10
 
11
  # TODO(#1): Add more models.
12
+ SUPPORTED_MODELS = ["gpt-4", "gpt-4-turbo", "gpt-3.5-turbo", "gemini-pro"]
13
 
14
 
15
  def user(user_message):
requirments.txt CHANGED
@@ -6,6 +6,7 @@ altair==5.2.0
6
  annotated-types==0.6.0
7
  anyio==4.2.0
8
  attrs==23.2.0
 
9
  certifi==2023.11.17
10
  charset-normalizer==3.3.2
11
  click==8.1.7
@@ -20,8 +21,21 @@ fonttools==4.47.2
20
  frozenlist==1.4.1
21
  fschat==0.2.35
22
  fsspec==2023.12.2
 
 
 
 
 
 
 
 
 
 
23
  gradio==3.50.2
24
  gradio_client==0.6.1
 
 
 
25
  h11==0.14.0
26
  httpcore==1.0.2
27
  httpx==0.26.0
@@ -42,15 +56,18 @@ multidict==6.0.4
42
  networkx==3.2.1
43
  nh3==0.2.15
44
  numpy==1.26.3
45
- openai==1.10.0
46
  orjson==3.9.12
47
  packaging==23.2
48
  pandas==2.2.0
49
  peft==0.8.1
50
  pillow==10.2.0
51
  prompt-toolkit==3.0.43
 
52
  protobuf==4.25.2
53
  psutil==5.9.8
 
 
54
  pydantic==1.10.14
55
  pydantic_core==2.16.1
56
  pydub==0.25.1
@@ -65,10 +82,12 @@ regex==2023.12.25
65
  requests==2.31.0
66
  rich==13.7.0
67
  rpds-py==0.17.1
 
68
  ruff==0.1.15
69
  safetensors==0.4.2
70
  semantic-version==2.10.0
71
  sentencepiece==0.1.99
 
72
  shellingham==1.5.4
73
  shortuuid==1.0.11
74
  six==1.16.0
 
6
  annotated-types==0.6.0
7
  anyio==4.2.0
8
  attrs==23.2.0
9
+ cachetools==5.3.2
10
  certifi==2023.11.17
11
  charset-normalizer==3.3.2
12
  click==8.1.7
 
21
  frozenlist==1.4.1
22
  fschat==0.2.35
23
  fsspec==2023.12.2
24
+ google-api-core==2.16.1
25
+ google-auth==2.27.0
26
+ google-cloud-aiplatform==1.40.0
27
+ google-cloud-bigquery==3.17.1
28
+ google-cloud-core==2.4.1
29
+ google-cloud-resource-manager==1.11.0
30
+ google-cloud-storage==2.14.0
31
+ google-crc32c==1.5.0
32
+ google-resumable-media==2.7.0
33
+ googleapis-common-protos==1.62.0
34
  gradio==3.50.2
35
  gradio_client==0.6.1
36
+ grpc-google-iam-v1==0.13.0
37
+ grpcio==1.60.0
38
+ grpcio-status==1.60.0
39
  h11==0.14.0
40
  httpcore==1.0.2
41
  httpx==0.26.0
 
56
  networkx==3.2.1
57
  nh3==0.2.15
58
  numpy==1.26.3
59
+ openai==0.28.0
60
  orjson==3.9.12
61
  packaging==23.2
62
  pandas==2.2.0
63
  peft==0.8.1
64
  pillow==10.2.0
65
  prompt-toolkit==3.0.43
66
+ proto-plus==1.23.0
67
  protobuf==4.25.2
68
  psutil==5.9.8
69
+ pyasn1==0.5.1
70
+ pyasn1-modules==0.3.0
71
  pydantic==1.10.14
72
  pydantic_core==2.16.1
73
  pydub==0.25.1
 
82
  requests==2.31.0
83
  rich==13.7.0
84
  rpds-py==0.17.1
85
+ rsa==4.9
86
  ruff==0.1.15
87
  safetensors==0.4.2
88
  semantic-version==2.10.0
89
  sentencepiece==0.1.99
90
+ shapely==2.0.2
91
  shellingham==1.5.4
92
  shortuuid==1.0.11
93
  six==1.16.0