Spaces:
Running
Running
Satyam-Singh
commited on
Commit
β’
8bd95e2
1
Parent(s):
4cc32bf
Update app.py
Browse files
app.py
CHANGED
@@ -11,29 +11,15 @@ print("google-generativeai:", genai.__version__)
|
|
11 |
|
12 |
GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
|
13 |
|
14 |
-
TITLE = """<h1 align="center">
|
15 |
-
SUBTITLE = """<h2 align="center">Play with
|
16 |
-
DUPLICATE = """
|
17 |
-
<div style="text-align: center; display: flex; justify-content: center; align-items: center;">
|
18 |
-
<a href="https://huggingface.co/spaces/SkalskiP/ChatGemini?duplicate=true">
|
19 |
-
<img src="https://bit.ly/3gLdBN6" alt="Duplicate Space" style="margin-right: 10px;">
|
20 |
-
</a>
|
21 |
-
<span>Duplicate the Space and run securely with your
|
22 |
-
<a href="https://makersuite.google.com/app/apikey">GOOGLE API KEY</a>.
|
23 |
-
</span>
|
24 |
-
</div>
|
25 |
-
"""
|
26 |
-
|
27 |
-
#AVATAR_IMAGES = (
|
28 |
-
# None,
|
29 |
-
# "https://media.roboflow.com/spaces/gemini-icon.png"
|
30 |
-
#)
|
31 |
|
32 |
AVATAR_IMAGES = (
|
33 |
None,
|
34 |
-
"https://
|
35 |
)
|
36 |
|
|
|
37 |
IMAGE_CACHE_DIRECTORY = "/tmp"
|
38 |
IMAGE_WIDTH = 512
|
39 |
CHAT_HISTORY = List[Tuple[Optional[Union[Tuple[str], str]], Optional[str]]]
|
@@ -241,7 +227,6 @@ bot_inputs = [
|
|
241 |
with gr.Blocks() as demo:
|
242 |
gr.HTML(TITLE)
|
243 |
gr.HTML(SUBTITLE)
|
244 |
-
gr.HTML(DUPLICATE)
|
245 |
with gr.Column():
|
246 |
google_key_component.render()
|
247 |
chatbot_component.render()
|
|
|
11 |
|
12 |
GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
|
13 |
|
14 |
+
TITLE = """<h1 align="center">LLaVa Studio π¬</h1>"""
|
15 |
+
SUBTITLE = """<h2 align="center">Play with LLaVa Pro and LLaVa Pro Vision </h2>"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
AVATAR_IMAGES = (
|
18 |
None,
|
19 |
+
'https://huggingface.co/spaces/Satyam-Singh/LLaVa-56B-Chat/blob/main/llava-logo.svg'#"https://media.roboflow.com/spaces/gemini-icon.png"
|
20 |
)
|
21 |
|
22 |
+
|
23 |
IMAGE_CACHE_DIRECTORY = "/tmp"
|
24 |
IMAGE_WIDTH = 512
|
25 |
CHAT_HISTORY = List[Tuple[Optional[Union[Tuple[str], str]], Optional[str]]]
|
|
|
227 |
with gr.Blocks() as demo:
|
228 |
gr.HTML(TITLE)
|
229 |
gr.HTML(SUBTITLE)
|
|
|
230 |
with gr.Column():
|
231 |
google_key_component.render()
|
232 |
chatbot_component.render()
|