bahakizil commited on
Commit
245e0d2
·
verified ·
1 Parent(s): 2e6c205

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -247,12 +247,8 @@ def run_app(user_text, user_file):
247
  ### 8) Gradio Arayüz
248
  def build_gradio_interface():
249
  txt_box = gr.Textbox(
250
- lines=5, label="Text Input (optional)",
251
- placeholder="Write/paste text here or upload .pdf/.docx/.txt"
252
  )
253
- file_comp = gr.File(
254
- label="Upload PDF/DOCX/TXT",
255
- file_types=[".pdf",".docx",".txt"]
256
  )
257
  out_html = gr.HTML(label="Final Output")
258
  out_info = gr.Label(label="Process Info")
@@ -262,7 +258,7 @@ def build_gradio_interface():
262
  inputs=[txt_box, file_comp],
263
  outputs=[out_html, out_info],
264
  title="GPT-4o-mini 3-API-Calls, 6-chunk approach",
265
- description="Human-coded example, 3 separate API calls => 6 chunks total. Ensures 4k-10k words."
266
  )
267
  return demo
268
 
 
247
  ### 8) Gradio Arayüz
248
  def build_gradio_interface():
249
  txt_box = gr.Textbox(
250
+ lines=5, label="Transcript Input",
 
251
  )
 
 
 
252
  )
253
  out_html = gr.HTML(label="Final Output")
254
  out_info = gr.Label(label="Process Info")
 
258
  inputs=[txt_box, file_comp],
259
  outputs=[out_html, out_info],
260
  title="GPT-4o-mini 3-API-Calls, 6-chunk approach",
261
+ description="3 separate API calls => 6 chunks total. Ensures 4k-10k words."
262
  )
263
  return demo
264