bahakizil commited on
Commit
5379a19
·
verified ·
1 Parent(s): 245e0d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -232,11 +232,11 @@ def main_pipeline(input_content):
232
  return final_text, word_count
233
 
234
  ### 7) Gradio Fonksiyon
235
- def run_app(user_text, user_file):
236
  # Dosya veya metin
237
- content = read_input_file_or_text(user_file, user_text)
238
  if not content:
239
- return ("⚠️ Please provide text or file input!", "")
240
 
241
  # pipeline
242
  final_text, wcount = main_pipeline(content)
 
232
  return final_text, word_count
233
 
234
  ### 7) Gradio Fonksiyon
235
+ def run_app(user_text):
236
  # Dosya veya metin
237
+ content = read_input_file_or_text(user_text)
238
  if not content:
239
+ return ("⚠️ Please provide text", "")
240
 
241
  # pipeline
242
  final_text, wcount = main_pipeline(content)