spriambada3 commited on
Commit
96d76e6
ยท
1 Parent(s): 038c199

remove model selection for simplicity

Browse files
Files changed (1) hide show
  1. app.py +2 -15
app.py CHANGED
@@ -26,14 +26,6 @@ huggingface_client = InferenceClient(api_key=HF_API_KEY)
26
  # Load Faster Whisper model versi large
27
  model = faster_whisper.WhisperModel("turbo", device="cpu", compute_type="int8")
28
 
29
- # Daftar model yang dapat dipilih
30
- MODEL_OPTIONS = [
31
- "mistralai/Mistral-Small-3.1-24B-Instruct-2503",
32
- "mistralai/Mistral-7B-Instruct-v0.3",
33
- "deepseek-ai/DeepSeek-R1-Distill-Qwen-32B",
34
- "Qwen/Qwen2.5-Coder-32B-Instruct",
35
- ]
36
-
37
 
38
  def chat_with_groq(message):
39
  """Handles conversation with Groq LLM."""
@@ -128,11 +120,6 @@ with gr.Blocks(
128
 
129
  with gr.Row():
130
  with gr.Column():
131
- model_selector = gr.Dropdown(
132
- choices=MODEL_OPTIONS,
133
- value="mistralai/Mistral-Small-3.1-24B-Instruct-2503",
134
- label="๐Ÿ” Pilih Model AI",
135
- )
136
  audio_input = gr.Audio("microphone", type="filepath", label="๐ŸŽ™๏ธ Rekam Suara")
137
  transcribe_button = gr.Button("๐ŸŽง Transkripsi dengan Whisper Large")
138
  transcription_edit_box = gr.Textbox(
@@ -173,14 +160,14 @@ with gr.Blocks(
173
  # Tombol SOAP
174
  soap_button.click(
175
  generate_soap_summary,
176
- inputs=[transcription_edit_box, model_selector],
177
  outputs=[soap_output, download_soap],
178
  )
179
 
180
  # Tombol Tags
181
  tags_button.click(
182
  detect_medical_tags,
183
- inputs=[transcription_edit_box, model_selector],
184
  outputs=[tags_output, download_tags],
185
  )
186
 
 
26
  # Load Faster Whisper model versi large
27
  model = faster_whisper.WhisperModel("turbo", device="cpu", compute_type="int8")
28
 
 
 
 
 
 
 
 
 
29
 
30
  def chat_with_groq(message):
31
  """Handles conversation with Groq LLM."""
 
120
 
121
  with gr.Row():
122
  with gr.Column():
 
 
 
 
 
123
  audio_input = gr.Audio("microphone", type="filepath", label="๐ŸŽ™๏ธ Rekam Suara")
124
  transcribe_button = gr.Button("๐ŸŽง Transkripsi dengan Whisper Large")
125
  transcription_edit_box = gr.Textbox(
 
160
  # Tombol SOAP
161
  soap_button.click(
162
  generate_soap_summary,
163
+ inputs=[transcription_edit_box],
164
  outputs=[soap_output, download_soap],
165
  )
166
 
167
  # Tombol Tags
168
  tags_button.click(
169
  detect_medical_tags,
170
+ inputs=[transcription_edit_box],
171
  outputs=[tags_output, download_tags],
172
  )
173