Spaces:
Paused
Paused
Update stable branch
Browse files- Tabs/Gemini_Chabot_Stable.py +1 -5
- app.py +1 -1
Tabs/Gemini_Chabot_Stable.py
CHANGED
|
@@ -16,10 +16,6 @@ NOTICE = """
|
|
| 16 |
"""
|
| 17 |
ABOUT = """
|
| 18 |
**Updates (2024-9-25)** π: Upgrade model to SOTA Gemini 1.5 Flash Experimental 0924
|
| 19 |
-
|
| 20 |
-
**Info** π:
|
| 21 |
-
- Model: Gemini 1.5 Flash Experimental 0924 and other Gemini models
|
| 22 |
-
- Chat with Gemini 1.5 Flash model with images and documents
|
| 23 |
"""
|
| 24 |
ERRORS = """
|
| 25 |
Known errors β οΈ:
|
|
@@ -159,7 +155,7 @@ def chatbot_stable(message, history, model_id, system_message, max_tokens, tempe
|
|
| 159 |
generation_config={
|
| 160 |
"temperature": temperature,
|
| 161 |
"top_p": top_p,
|
| 162 |
-
"top_k":
|
| 163 |
"max_output_tokens": max_tokens,
|
| 164 |
"response_mime_type": "text/plain",
|
| 165 |
}
|
|
|
|
| 16 |
"""
|
| 17 |
ABOUT = """
|
| 18 |
**Updates (2024-9-25)** π: Upgrade model to SOTA Gemini 1.5 Flash Experimental 0924
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
"""
|
| 20 |
ERRORS = """
|
| 21 |
Known errors β οΈ:
|
|
|
|
| 155 |
generation_config={
|
| 156 |
"temperature": temperature,
|
| 157 |
"top_p": top_p,
|
| 158 |
+
"top_k": 40,
|
| 159 |
"max_output_tokens": max_tokens,
|
| 160 |
"response_mime_type": "text/plain",
|
| 161 |
}
|
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from Tabs.Gemini_Chabot_Stable import gemini_chatbot, clear_chat_button, undo_chat_button, clear_chat_history, undo_chat, TITLE, NOTICE, ERRORS, FUTURE_IMPLEMENTATIONS, ABOUT
|
| 3 |
-
from Tabs.Gemini_Chatbot_Preview import gemini_chatbot_preview, clear_chat_button_preview, undo_chat_button_preview, clear_chat_history_preview, undo_chat_preview
|
| 4 |
|
| 5 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 6 |
gr.HTML("""<h3 align="center">I strongly recommond duplicate this space for intensive uses!!!</h3>""")
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from Tabs.Gemini_Chabot_Stable import gemini_chatbot, clear_chat_button, undo_chat_button, clear_chat_history, undo_chat, TITLE, NOTICE, ERRORS, FUTURE_IMPLEMENTATIONS, ABOUT
|
| 3 |
+
# from Tabs.Gemini_Chatbot_Preview import gemini_chatbot_preview, clear_chat_button_preview, undo_chat_button_preview, clear_chat_history_preview, undo_chat_preview
|
| 4 |
|
| 5 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 6 |
gr.HTML("""<h3 align="center">I strongly recommond duplicate this space for intensive uses!!!</h3>""")
|