zjrwtxtechstudio commited on
Commit
f4abf20
·
1 Parent(s): d21820e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -14
app.py CHANGED
@@ -10,18 +10,9 @@ print("google-generativeai:", genai.__version__)
10
 
11
  GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
12
 
13
- TITLE = """<h1 align="center">Gemini Playground 💬</h1>"""
14
- SUBTITLE = """<h2 align="center">Play with Gemini Pro and Gemini Pro Vision API</h2>"""
15
- DUPLICATE = """
16
- <div style="text-align: center; display: flex; justify-content: center; align-items: center;">
17
- <a href="https://huggingface.co/spaces/SkalskiP/ChatGemini?duplicate=true">
18
- <img src="https://bit.ly/3gLdBN6" alt="Duplicate Space" style="margin-right: 10px;">
19
- </a>
20
- <span>Duplicate the Space and run securely with your
21
- <a href="https://makersuite.google.com/app/apikey">GOOGLE API KEY</a>.
22
- </span>
23
- </div>
24
- """
25
 
26
  AVATAR_IMAGES = (
27
  None,
@@ -114,8 +105,8 @@ chatbot_component = gr.Chatbot(
114
  scale=2
115
  )
116
  text_prompt_component = gr.Textbox(
117
- placeholder="Hi there!",
118
- label="Ask me anything and press Enter"
119
  )
120
  run_button_component = gr.Button()
121
  temperature_component = gr.Slider(
 
10
 
11
  GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
12
 
13
+ TITLE = """<h1 align="center">免费用Gemini语言+图片多模态对话💬</h1>"""
14
+ SUBTITLE = """<h2 align="center">公众号:正经人王同学</h2>"""
15
+
 
 
 
 
 
 
 
 
 
16
 
17
  AVATAR_IMAGES = (
18
  None,
 
105
  scale=2
106
  )
107
  text_prompt_component = gr.Textbox(
108
+ placeholder="想说些什么呢?",
109
+ label="公众号:正经人王同学"
110
  )
111
  run_button_component = gr.Button()
112
  temperature_component = gr.Slider(