Spaces:
Paused
Paused
Updated files
Browse files
Tabs/Gemini_Chabot_Nightly.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import os
|
2 |
import google.generativeai as genai
|
3 |
-
from google.generativeai.types import HarmCategory, HarmBlockThreshold
|
4 |
import gradio as gr
|
5 |
from dotenv import load_dotenv
|
6 |
|
@@ -9,12 +8,12 @@ load_dotenv()
|
|
9 |
GEMINI_API_KEY_NIGHTLY = os.getenv("GEMINI_API_KEY_NIGHTLY")
|
10 |
model_name = "gemini-1.5-flash"
|
11 |
|
12 |
-
TITLE_NIGHTLY = """<h1 align="center">🎮Chat with Gemini 1.5🔥
|
13 |
NOTICE_NIGHTLY = """
|
14 |
Notices 📜:
|
15 |
- This app is still in development (extreme unstable)
|
16 |
- Some features may not work as expected
|
17 |
-
-
|
18 |
"""
|
19 |
ERROR_NIGHTLY = """
|
20 |
Known errors ⚠️:
|
@@ -96,7 +95,6 @@ clear_chat_button = gr.ClearButton(
|
|
96 |
gemini_chatbot_nightly = gr.ChatInterface(
|
97 |
fn=chatbot_nightly,
|
98 |
chatbot=gemini_chatbot_interface_nightly,
|
99 |
-
title="Gemini 1.5 Chatbot",
|
100 |
multimodal=True,
|
101 |
clear_btn=clear_chat_button
|
102 |
)
|
|
|
1 |
import os
|
2 |
import google.generativeai as genai
|
|
|
3 |
import gradio as gr
|
4 |
from dotenv import load_dotenv
|
5 |
|
|
|
8 |
GEMINI_API_KEY_NIGHTLY = os.getenv("GEMINI_API_KEY_NIGHTLY")
|
9 |
model_name = "gemini-1.5-flash"
|
10 |
|
11 |
+
TITLE_NIGHTLY = """<h1 align="center">🎮Chat with Gemini 1.5 Flash🔥 - Nightly</h1>"""
|
12 |
NOTICE_NIGHTLY = """
|
13 |
Notices 📜:
|
14 |
- This app is still in development (extreme unstable)
|
15 |
- Some features may not work as expected
|
16 |
+
- The chatbot supports text, documents, and images
|
17 |
"""
|
18 |
ERROR_NIGHTLY = """
|
19 |
Known errors ⚠️:
|
|
|
95 |
gemini_chatbot_nightly = gr.ChatInterface(
|
96 |
fn=chatbot_nightly,
|
97 |
chatbot=gemini_chatbot_interface_nightly,
|
|
|
98 |
multimodal=True,
|
99 |
clear_btn=clear_chat_button
|
100 |
)
|