Rahatara commited on
Commit
953b1da
1 Parent(s): 551ea49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -15
app.py CHANGED
@@ -1,27 +1,13 @@
1
  import os
2
  import time
3
  from typing import List, Tuple, Optional
4
-
5
  import google.generativeai as genai
6
  import gradio as gr
7
  from PIL import Image
8
 
9
- print("google-generativeai:", genai.__version__)
10
 
11
- GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
12
 
13
- TITLE = """<h1 align="center">🕹️ Google Gemini Chatbot 🔥</h1>"""
14
- SUBTITLE = """<h2 align="center">🎨Create with Multimodal Gemini</h2>"""
15
- DUPLICATE = """
16
- <div style="text-align: center; display: flex; justify-content: center; align-items: center;">
17
- <a href="https://huggingface.co/spaces/Rahatara/build_with_gemini/blob/main/allgemapp.py?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
  IMAGE_WIDTH = 512
27
 
 
1
  import os
2
  import time
3
  from typing import List, Tuple, Optional
 
4
  import google.generativeai as genai
5
  import gradio as gr
6
  from PIL import Image
7
 
 
8
 
 
9
 
10
+ GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  IMAGE_WIDTH = 512
13