Beibars003 commited on
Commit
04c13ac
·
verified ·
1 Parent(s): 058f9be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -80,6 +80,7 @@ llm_model = None
80
  def respond(
81
  message: str,
82
  history: List[Tuple[str, str]],
 
83
  direction: str,
84
  max_tokens: int = 64,
85
  temperature: float = 0.7,
@@ -189,6 +190,14 @@ demo = gr.ChatInterface(
189
  label="⚙️ Parameters", open=False, render=False
190
  ),
191
  additional_inputs=[
 
 
 
 
 
 
 
 
192
  gr.Dropdown(
193
  choices=["English to Kazakh", "Kazakh to English", "Kazakh to Russian", "Russian to Kazakh"],
194
  label="Translation Direction",
 
80
  def respond(
81
  message: str,
82
  history: List[Tuple[str, str]],
83
+ model: str,
84
  direction: str,
85
  max_tokens: int = 64,
86
  temperature: float = 0.7,
 
190
  label="⚙️ Parameters", open=False, render=False
191
  ),
192
  additional_inputs=[
193
+ gr.Dropdown(
194
+ choices=[
195
+ "gemma_3_800M_sft_v2_translation-kazparc_latest.gguf",
196
+ ],
197
+ value="gemma_3_800M_sft_v2_translation-kazparc_latest.gguf",
198
+ label="Model",
199
+ info="Select the AI model to use for chat",
200
+ ),
201
  gr.Dropdown(
202
  choices=["English to Kazakh", "Kazakh to English", "Kazakh to Russian", "Russian to Kazakh"],
203
  label="Translation Direction",