Satyam-Singh commited on
Commit
edc02e2
·
verified ·
1 Parent(s): 8345474

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -11,7 +11,7 @@ generation_config = {
11
  "temperature": 0.9,
12
  "top_p": 1,
13
  "top_k": 1,
14
- "max_output_tokens": 2048,
15
  }
16
 
17
  safety_settings = [
@@ -104,11 +104,6 @@ def gemini_chat(message, history):
104
  return response.text
105
 
106
  additional_inputs=[
107
- gr.Textbox(
108
- label="System Prompt",
109
- max_lines=1,
110
- interactive=True,
111
- ),
112
  gr.Slider(
113
  label="Temperature",
114
  value=0.9,
@@ -129,7 +124,7 @@ additional_inputs=[
129
  ),
130
  gr.Slider(
131
  label="Top-p (nucleus sampling)",
132
- value=0.90,
133
  minimum=0.0,
134
  maximum=1,
135
  step=0.05,
@@ -138,7 +133,7 @@ additional_inputs=[
138
  ),
139
  gr.Slider(
140
  label="Repetition penalty",
141
- value=1.2,
142
  minimum=1.0,
143
  maximum=2.0,
144
  step=0.05,
@@ -163,7 +158,7 @@ gr.ChatInterface(
163
  show_copy_button=True,
164
  likeable=True,
165
  layout="panel",
166
- bubble_full_width=False
167
  ),
168
  title="LLAVA: Large Language Virtual Assistant",
169
  description="Official Demo Of ```LLAVA``` based on ```Large Language Virtual Assistant ```.",
 
11
  "temperature": 0.9,
12
  "top_p": 1,
13
  "top_k": 1,
14
+ "max_output_tokens": 4096,
15
  }
16
 
17
  safety_settings = [
 
104
  return response.text
105
 
106
  additional_inputs=[
 
 
 
 
 
107
  gr.Slider(
108
  label="Temperature",
109
  value=0.9,
 
124
  ),
125
  gr.Slider(
126
  label="Top-p (nucleus sampling)",
127
+ value=1,
128
  minimum=0.0,
129
  maximum=1,
130
  step=0.05,
 
133
  ),
134
  gr.Slider(
135
  label="Repetition penalty",
136
+ value=1,
137
  minimum=1.0,
138
  maximum=2.0,
139
  step=0.05,
 
158
  show_copy_button=True,
159
  likeable=True,
160
  layout="panel",
161
+ bubble_full_width=True
162
  ),
163
  title="LLAVA: Large Language Virtual Assistant",
164
  description="Official Demo Of ```LLAVA``` based on ```Large Language Virtual Assistant ```.",